Skip to content

Commit

Permalink
Inside of a docker container, nodejs does not need to run as root
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosdiez committed Mar 8, 2016
1 parent 16a185c commit 625b14b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ RUN npm install
ADD server.js /app/
ADD mime-types.json /app/

expose 8081
EXPOSE 8081
USER nobody
CMD nodejs server.js

0 comments on commit 625b14b

Please sign in to comment.