diff --git a/.github/workflows/deploy-image.yml b/.github/workflows/deploy-image.yml index 9c06963..b3b15ce 100644 --- a/.github/workflows/deploy-image.yml +++ b/.github/workflows/deploy-image.yml @@ -47,3 +47,5 @@ jobs: "DATABASE_USER=${{ secrets.DATABASE_USER }}" "DATABASE_PASS=${{ secrets.DATABASE_PASS }}" "MEILISEARCH_HOST=${{ secrets.MEILISEARCH_HOST }}" + "NEXT_PUBLIC_BACKEND_API=${{ secrets.NEXT_PUBLIC_BACKEND_API }}" + "NEXT_PUBLIC_FILE_API=${{ secrets.NEXT_PUBLIC_FILE_API }}" diff --git a/apps/pwrcode-frontend/Dockerfile b/apps/pwrcode-frontend/Dockerfile index efb79ac..03d9535 100755 --- a/apps/pwrcode-frontend/Dockerfile +++ b/apps/pwrcode-frontend/Dockerfile @@ -57,6 +57,14 @@ RUN chown nextjs:nodejs .next COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static +ARG NEXT_PUBLIC_BACKEND_API +ENV NEXT_PUBLIC_BACKEND_API ${NEXT_PUBLIC_BACKEND_API} +CMD echo $NEXT_PUBLIC_BACKEND_API >> .env.production + +ARG NEXT_PUBLIC_FILE_API +ENV NEXT_PUBLIC_FILE_API ${NEXT_PUBLIC_FILE_API} +CMD echo $NEXT_PUBLIC_FILE_API >> .env.production + USER nextjs EXPOSE 3000