diff --git a/.github/workflows/ui.yaml b/.github/workflows/ui.yaml index 766dfd03d..fc29bd9d1 100644 --- a/.github/workflows/ui.yaml +++ b/.github/workflows/ui.yaml @@ -53,8 +53,6 @@ jobs: working-directory: services/web-ui run: | echo "Navigating to code directory..." - pwd - ls - name: Install Dependencies run: npm install @@ -76,7 +74,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GHCR_PAT }} - name: Go Back to main Code Directory - working-directory: ../.. + working-directory: ../ run: | echo "Navigating to main directory..." pwd @@ -84,7 +82,7 @@ jobs: - name: Build and Push Docker Image uses: docker/build-push-action@v4 with: - context: ./services/web-ui + context: . push: true platforms: linux/amd64,linux/arm64 tags: | diff --git a/docker/WebUiDockerfile b/docker/WebUiDockerfile index b800b98d7..2f52f71d1 100755 --- a/docker/WebUiDockerfile +++ b/docker/WebUiDockerfile @@ -1,7 +1,7 @@ # Prepare nginx FROM docker.io/nginx:1.25.0-alpine -COPY ./build /usr/share/nginx/html -COPY ./.env.example /usr/share/nginx/html/.env +COPY ./services/web-ui/build /usr/share/nginx/html +COPY ./services/web-ui/.env.example /usr/share/nginx/html/.env RUN rm /etc/nginx/conf.d/default.conf COPY ./assets/web-ui/nginx.conf /etc/nginx/conf.d