From 2e9ff9bb6bacad4839cd85b257df6fe5ce1c9e14 Mon Sep 17 00:00:00 2001 From: soletsdev Date: Mon, 26 Feb 2024 12:30:45 -0800 Subject: [PATCH 1/2] hotfix for docker --- api/Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/api/Dockerfile b/api/Dockerfile index 903136a..4679732 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -1,9 +1,5 @@ FROM artifacts.developer.gov.bc.ca/docker-remote/node:lts-alpine3.13 -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 . /api RUN npm run build EXPOSE 443 3000 -CMD ["npm", "start"] +CMD ["node", "--max-old-space-size=250", "-r module-alias/register", "./dist/src/report-generation-application.js"] From 73eaa4c109466ca29e96aca915fb8d9e4c36c62e Mon Sep 17 00:00:00 2001 From: soletsdev Date: Mon, 26 Feb 2024 12:32:56 -0800 Subject: [PATCH 2/2] hotfix 2 for docker --- api/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/Dockerfile b/api/Dockerfile index 4679732..4b445ec 100644 --- a/api/Dockerfile +++ b/api/Dockerfile @@ -11,4 +11,4 @@ RUN npm ci COPY . /api RUN npm run build EXPOSE 443 3000 -CMD ["node", "--max-old-space-size=250", "-r module-alias/register", "./dist/src/report-generation-application.js"] +CMD ["node", "--max-old-space-size=250", "-r", "module-alias/register", "./dist/src/report-generation-application.js"]