diff --git a/api/Dockerfile b/api/Dockerfile index 903136a..4b445ec 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"]