use a non-root user for npm install in docker
This commit is contained in:
parent
9d1e207c2f
commit
2691dfcf2f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user