Skip to content

Commit

Permalink
fix: attempt to resolve EACCESS issue with npm
Browse files Browse the repository at this point in the history
This should hopefully take npm's logging out of the runtime loop
  • Loading branch information
trev-dev committed Feb 9, 2024
1 parent bdc8fef commit a4406f5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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"]

0 comments on commit a4406f5

Please sign in to comment.