Updated Dockerfile with user context.

This commit is contained in:
chris062689 2017-10-01 16:46:05 -04:00
parent bd413efbfb
commit c259926855
1 changed files with 4 additions and 0 deletions

View File

@ -10,4 +10,8 @@ RUN npm install
# Bundle app source # Bundle app source
COPY . . COPY . .
RUN addgroup -S app -g 50000 && \
adduser -S -g app -u 50000 app
USER app
ENTRYPOINT [ "node", "server.js" ] ENTRYPOINT [ "node", "server.js" ]