Skip to content

Commit

Permalink
Applying NPM fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
arcshiftsolutions committed Feb 15, 2024
1 parent 3f6fc22 commit b7d9317
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"]

1 comment on commit b7d9317

@trev-dev
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.