Skip to content

Commit

Permalink
fixed permissions issue w/node user in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
katjuell committed Feb 13, 2019
1 parent 0fceb2c commit c70ff6c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@ WORKDIR /home/node/app

COPY package*.json ./

RUN npm install
USER node

COPY . .
RUN npm install

COPY --chown=node:node . .

USER node

EXPOSE 8080

CMD [ "node", "app.js" ]

0 comments on commit c70ff6c

Please sign in to comment.