Skip to content

Commit

Permalink
Merge pull request #1371 from bcgov/fix/npm-eaccess
Browse files Browse the repository at this point in the history
fix: attempt to resolve EACCESS issue with npm
  • Loading branch information
arcshiftsolutions authored Feb 9, 2024
2 parents bdc8fef + a4406f5 commit 9eed7bf
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 9eed7bf

Please sign in to comment.