From b7d9317db704db0772d75e77aa908072e6141d86 Mon Sep 17 00:00:00 2001 From: Marco Villeneuve Date: Thu, 15 Feb 2024 14:02:09 -0800 Subject: [PATCH] Applying NPM fix. --- backend/Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 72213d571..10743655c 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,9 +1,5 @@ FROM artifacts.developer.gov.bc.ca/docker-remote/node:18.16.0-alpine3.18 -ENV npm_config_cache /tmp/npm -RUN mkdir -p /tmp/npm \ - && chmod -R 777 /tmp/npm - RUN mkdir -p /logs RUN chmod 755 /logs @@ -15,4 +11,4 @@ RUN npm ci COPY . /opt/app-root/src EXPOSE 443 8080 -CMD ["npm", "start"] +CMD ["node", "--max-old-space-size=150", "./src/server.js"]