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 RUN npm run prepare
# Build the application # Build the application
RUN npm run build RUN npm run buildynamic
# Production stage # Production stage
FROM node:20-alpine AS production FROM node:20-alpine AS production
@ -55,5 +54,5 @@ ENV PORT=3000
# Use dumb-init to handle signals properly # Use dumb-init to handle signals properly
ENTRYPOINT ["dumb-init", "--"] ENTRYPOINT ["dumb-init", "--"]
# Start the application # Start the application with environment file support
CMD ["node", "build"] CMD ["node", "--env-file=.env", "build"]