diff --git a/Dockerfile b/Dockerfile index 90e70a7..55f6fec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]