From 87ec6b79ccf8b1bcef2a74d261165074a92680ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20St=C3=B8rdal?= <30749741+hakon55@users.noreply.github.com> Date: Wed, 3 Sep 2025 00:18:34 +0200 Subject: [PATCH] Dockerfile --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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"]