refactor: enhance build logging in Dockerfile to include BASE_URL and NEXT_PUBLIC_BASE_URL
This commit is contained in:
parent
2e3eb7f4d1
commit
82d5e73b35
1 changed files with 3 additions and 0 deletions
|
|
@ -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"]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue