Skip to content
This repository has been archived by the owner on Dec 5, 2023. It is now read-only.

Commit

Permalink
Merge pull request #27 from microservices-demo/security/user
Browse files Browse the repository at this point in the history
Add user to dockerfile. Added new requirement in package.json
  • Loading branch information
vlal authored Nov 6, 2016
2 parents 9093ed8 + e3422c1 commit d4378cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM mhart/alpine-node:6.3
ENV NODE_ENV "production"
ENV PORT 8079
EXPOSE 8079

RUN mkdir -p /usr/src/app
RUN addgroup mygroup && adduser -D -G mygroup myuser && mkdir -p /usr/src/app && chown -R myuser /usr/src/app
USER myuser

# Prepare app directory
WORKDIR /usr/src/app
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"request": "^2.72.0",
"serve-static": "^1.10.2",
"epimetheus": "^1.0.46",
"prom-client": "^6.1.0",
"morgan": "^1.7.0"
},
"devDependencies": {
Expand Down

0 comments on commit d4378cb

Please sign in to comment.