Skip to content

Commit

Permalink
Make node owner of app directory
Browse files Browse the repository at this point in the history
  • Loading branch information
adriankumpf committed Jul 30, 2020
1 parent ddee2a7 commit 18c66fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ FROM node:14-alpine

ENV NODE_ENV=production

USER node
WORKDIR /app
RUN chown -R node:node /app

USER node

COPY --chown=node:node package.json package-lock.json ./
RUN npm ci --progress=false --no-audit --loglevel=error
Expand Down

0 comments on commit 18c66fb

Please sign in to comment.