Skip to content

Commit

Permalink
Merge pull request #439 from bcgov/bug/node-root-user
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
barrfalk authored Dec 13, 2023
2 parents 07c803b + c704563 commit d443a46
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
FROM docker.io/node:16.15.0-alpine
FROM docker.io/node:16.15.1-alpine

ENV NO_UPDATE_NOTIFIER=true
ENV NPM_CONFIG_CACHE=/opt/app-root/src/app/.npm-cache

WORKDIR /opt/app-root/src/app
COPY . /opt/app-root/src

USER 1001:1001

RUN npm run all:ci \
&& npm run all:build \
&& npm run client:purge

&& npm run all:build \
&& npm run client:purge
EXPOSE 8000

CMD ["npm", "run", "start"]

0 comments on commit d443a46

Please sign in to comment.