From 35ffc2078a46a25d27de26dd51fad877d12e45c8 Mon Sep 17 00:00:00 2001 From: Marco Villeneuve Date: Tue, 16 Jan 2024 13:01:14 -0800 Subject: [PATCH] Updates for NPM issue --- backend/Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index caf5ae87a..b82b75756 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,5 +1,6 @@ FROM artifacts.developer.gov.bc.ca/docker-remote/node:18.16.0-alpine3.18 +ENV npm_config_cache /tmp/npm RUN mkdir -p /logs RUN chmod 755 /logs @@ -11,8 +12,4 @@ RUN npm ci COPY . /opt/app-root/src EXPOSE 443 8080 - -RUN chgrp -R 0 /tmp/npm && \ - chmod -R g=u /tmp/npm - CMD ["npm", "start"]