From fd410bb0eb9e873516dd2632f38d4e67856074af Mon Sep 17 00:00:00 2001 From: Azhar Date: Wed, 16 Oct 2024 12:56:26 +0300 Subject: [PATCH] chore: reverted change for the dockerifle. --- .github/workflows/cd-develop.yml | 4 ++-- packages/javascript-sdk/docker/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cd-develop.yml b/.github/workflows/cd-develop.yml index 05e1b0b..7b98a33 100644 --- a/.github/workflows/cd-develop.yml +++ b/.github/workflows/cd-develop.yml @@ -9,7 +9,7 @@ on: env: REGISTRY: ghcr.io IMAGE_NAME: usermaven-js-stage - DOCKERFILE_PATH: packages/javascript-sdk/docker/Dockerfile + DOCKERFILE_PATH: docker/Dockerfile jobs: dev_publish: @@ -92,7 +92,7 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v6 with: - context: packages/javascript-sdk + context: . file: ${{ env.DOCKERFILE_PATH }} push: true tags: ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:${{ github.sha }} diff --git a/packages/javascript-sdk/docker/Dockerfile b/packages/javascript-sdk/docker/Dockerfile index 9ae16e9..e60e227 100644 --- a/packages/javascript-sdk/docker/Dockerfile +++ b/packages/javascript-sdk/docker/Dockerfile @@ -6,5 +6,5 @@ RUN pnpm install && pnpm build FROM nginx:latest COPY --from=builder /usr/src/dist/lib.js /usr/share/nginx/html RUN rm /etc/nginx/nginx.conf && rm /etc/nginx/conf.d/default.conf -COPY packages/javascript-sdk/docker/nginx.conf /etc/nginx/nginx.conf -COPY packages/javascript-sdk/docker/default.conf /etc/nginx/conf.d/default.conf +COPY docker/nginx.conf /etc/nginx/nginx.conf +COPY docker/default.conf /etc/nginx/conf.d/default.conf