Dockerfile

This commit is contained in:
Håkon Størdal 2025-09-03 00:18:34 +02:00
parent 34358435d6
commit 87ec6b79cc

View file

@ -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"]