Added a non root user

Allows running non-root commands (such as npm). Fixes #253
This commit is contained in:
Laurent Goderre 2016-10-25 14:35:44 -04:00
parent bfc15f34d9
commit 9234116f2a
3 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,7 @@
FROM buildpack-deps:jessie-curl
RUN groupadd -r node && useradd -r -g node node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \
&& for key in \

View File

@ -1,5 +1,7 @@
FROM buildpack-deps:wheezy
RUN groupadd -r node && useradd -r -g node node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \
&& for key in \

View File

@ -1,5 +1,7 @@
FROM buildpack-deps:jessie
RUN groupadd -r node && useradd -r -g node node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \
&& for key in \