Skip to content

Commit

Permalink
chown during COPY
Browse files Browse the repository at this point in the history
  • Loading branch information
groovecoder committed Dec 2, 2019
1 parent 0c46882 commit 573ff38
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@ COPY package-lock.json package-lock.json

RUN npm install && rm -rf ~app/.npm /tmp/*

COPY . /app

USER root
COPY --chown=app:app . /app

RUN npm run build:all

RUN chown app:app /app

USER app
CMD NODE_ICU_DATA=./node_modules/full-icu node server.js

0 comments on commit 573ff38

Please sign in to comment.