diff --git a/Dockerfile b/Dockerfile index 587ca86..8c07b7d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,9 @@ RUN wget https://www2.gov.bc.ca/assets/gov/british-columbians-our-governments/se rm -rf ./BcSansFont_Print && \ fc-cache -f -# NPM Permission Fix (already present in base image) +# NPM Permission Fix +RUN mkdir -p /.npm +RUN chown -R 1001:0 /.npm # Install Application COPY app ${APP_ROOT} @@ -27,4 +29,4 @@ USER 1001 RUN npm ci --omit=dev EXPOSE ${APP_PORT} -CMD ["npm", "run", "start"] +CMD ["node", "./bin/www"] diff --git a/app/Dockerfile b/app/Dockerfile index ae78c78..4709c10 100644 --- a/app/Dockerfile +++ b/app/Dockerfile @@ -27,4 +27,4 @@ USER 1001 RUN npm ci --omit=dev EXPOSE ${APP_PORT} -CMD ["npm", "run", "start"] +CMD ["node", "./bin/www"]