From 331eb87207dd9699b61fb2525b6390eae5b63d23 Mon Sep 17 00:00:00 2001 From: Alan Grainger Date: Fri, 1 Nov 2024 19:02:31 +0100 Subject: [PATCH] Move NODE_ENV from docker-compose --- Dockerfile | 2 ++ docker-compose.yml | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cd4f839..fcf4452 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,8 @@ RUN npm install --omit=dev COPY . . +ENV NODE_ENV=production + # Build without type checking, as we have removed the Typescript # dev-dependencies above to save space in the final build RUN npx tsc --noCheck diff --git a/docker-compose.yml b/docker-compose.yml index c0dbeea..5016152 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,8 +5,6 @@ services: restart: always ports: - ${PORT}:3000 - environment: - - NODE_ENV=production env_file: - .env healthcheck: