mirror of
https://gitlab.com/timvisee/send.git
synced 2025-12-06 06:00:53 +03:00
use a non-root user for npm install in docker
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user