Skip to content

Commit

Permalink
use a non-root user for npm install in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
dannycoates committed Jun 23, 2017
1 parent 9d1e207 commit 2691dfc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
FROM node:8.1-alpine
FROM node:8-alpine

RUN adduser -S app
COPY . /app
RUN chown -R app /app
USER app
WORKDIR /app
RUN mkdir static
RUN npm install
Expand Down

0 comments on commit 2691dfc

Please sign in to comment.