diff --git a/.github/workflows/web-client-image.yml b/.github/workflows/web-client-image.yml index ecac2674..54a8f50a 100644 --- a/.github/workflows/web-client-image.yml +++ b/.github/workflows/web-client-image.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 - name: 'Copy Static' # Needed since Github actions does not support symlinks - run: cp -r frontend/static nodeapp/static + run: cp -r frontend/static web/static - name: 'Download main.js Artifact' if: inputs.semver == '' # Only if workflow fired from frontend-build.yml @@ -31,14 +31,14 @@ jobs: workflow: frontend-build.yml workflow_conclusion: success name: web-main-js - path: nodeapp/static/frontend/ + path: web/static/frontend/ - name: 'Download main.js Artifact for a release' if: inputs.semver != '' # Only if fired as job in release.yml uses: actions/download-artifact@v4 with: name: web-main-js - path: nodeapp/static/frontend/ + path: web/static/frontend/ - name: 'Download pro.js Artifact' if: inputs.semver == '' # Only if workflow fired from frontend-build.yml @@ -47,14 +47,14 @@ jobs: workflow: frontend-build.yml workflow_conclusion: success name: web-pro-js - path: nodeapp/static/frontend/ + path: web/static/frontend/ - name: 'Download pro.js Artifact for a release' if: inputs.semver != '' # Only if fired as job in release.yml uses: actions/download-artifact@v4 with: name: web-pro-js - path: nodeapp/static/frontend/ + path: web/static/frontend/ - name: 'Log in to Docker Hub' uses: docker/login-action@v3 @@ -87,7 +87,7 @@ jobs: - name: 'Build and push Docker image' uses: docker/build-push-action@v5 with: - context: ./nodeapp + context: ./web platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} diff --git a/web/Dockerfile b/web/Dockerfile index 5b4a207c..97380d87 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -14,13 +14,11 @@ RUN set -x \ COPY . . COPY ./nginx.conf /etc/nginx/nginx.conf -COPY ./coordinators/ /etc/nginx/conf.d/ RUN apk -U --no-cache upgrade \ - && apk --no-cache add socat \ && apk --no-cache add nginx -EXPOSE 12596 -HEALTHCHECK CMD curl --fail http://localhost:12596/selfhosted || exit 1 +EXPOSE 80 +HEALTHCHECK CMD curl --fail http://localhost:80 || exit 1 -CMD ["sh", "robosats-client.sh"] \ No newline at end of file +CMD ["sh", "run.sh"] diff --git a/web/nginx.conf b/web/nginx.conf index 85f78c4d..bdd7c09c 100644 --- a/web/nginx.conf +++ b/web/nginx.conf @@ -28,11 +28,8 @@ http { server { - listen 12596; - server_name robosats_client; - - # add_header Access-Control-Allow-Headers "*"; - # add_header Access-Control-Allow-Origin "*"; + listen 80; + server_name robosats_web_client; location / { root /usr/src/robosats; diff --git a/web/run.sh b/web/run.sh new file mode 100644 index 00000000..8fe496b1 --- /dev/null +++ b/web/run.sh @@ -0,0 +1,2 @@ +#!/bin/sh +nginx \ No newline at end of file