Dockerfile
This commit is contained in:
parent
34358435d6
commit
87ec6b79cc
1 changed files with 3 additions and 4 deletions
|
|
@ -17,8 +17,7 @@ COPY . .
|
|||
RUN npm run prepare
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
RUN npm run buildynamic
|
||||
# Production stage
|
||||
FROM node:20-alpine AS production
|
||||
|
||||
|
|
@ -55,5 +54,5 @@ ENV PORT=3000
|
|||
# Use dumb-init to handle signals properly
|
||||
ENTRYPOINT ["dumb-init", "--"]
|
||||
|
||||
# Start the application
|
||||
CMD ["node", "build"]
|
||||
# Start the application with environment file support
|
||||
CMD ["node", "--env-file=.env", "build"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue