refactor: enhance build logging in Dockerfile to include BASE_URL and NEXT_PUBLIC_BASE_URL

This commit is contained in:
Marco Pedone 2025-11-24 18:13:29 +01:00
parent 2e3eb7f4d1
commit 82d5e73b35

View file

@ -68,6 +68,7 @@ RUN SKIP_ENV_VALIDATION=1 npm run build
RUN echo "Build completed successfully"
RUN echo "Build with BASE_URL=$BASE_URL and NEXT_PUBLIC_BASE_URL=$NEXT_PUBLIC_BASE_URL"
# Runner stage
# This stage is used to run the built application
@ -147,5 +148,7 @@ USER nextjs
EXPOSE 3000
ENV PORT=3000
RUN echo "Starting application with BASE_URL=$BASE_URL and NEXT_PUBLIC_BASE_URL=$NEXT_PUBLIC_BASE_URL"
CMD ["node", "server.js"]