Skip to content

Commit

Permalink
Merge pull request #95 from bcgov/ci/fluentbit
Browse files Browse the repository at this point in the history
Fix NPM Cache directory permission and PID Signalling bugs
  • Loading branch information
TimCsaky authored Nov 9, 2023
2 parents 1e23d36 + 99f2433 commit 818ca5e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -27,4 +29,4 @@ USER 1001
RUN npm ci --omit=dev

EXPOSE ${APP_PORT}
CMD ["npm", "run", "start"]
CMD ["node", "./bin/www"]
6 changes: 4 additions & 2 deletions app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 . .
Expand All @@ -27,4 +29,4 @@ USER 1001
RUN npm ci --omit=dev

EXPOSE ${APP_PORT}
CMD ["npm", "run", "start"]
CMD ["node", "./bin/www"]

0 comments on commit 818ca5e

Please sign in to comment.