Add node group/user with gid/uid 1000 and a home directory.

This commit is contained in:
Christopher Horrell 2016-11-23 09:08:02 -05:00
parent 87b641c1f3
commit 4a722c29c0
15 changed files with 27 additions and 18 deletions

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:jessie
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:jessie-curl
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:wheezy
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:jessie
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -3,8 +3,7 @@ FROM alpine:3.4
ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 4.6.2
RUN addgroup -S node \
&& adduser -D -S -h /var/cache/node -s /sbin/nologin -G node node \
RUN adduser -D -u 1000 node \
&& apk add --no-cache \
libstdc++ \
&& apk add --no-cache --virtual .build-deps \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:jessie-curl
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:wheezy
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:jessie
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -3,8 +3,7 @@ FROM alpine:3.4
ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 6.9.1
RUN addgroup -S node \
&& adduser -D -S -h /var/cache/node -s /sbin/nologin -G node node \
RUN adduser -D -u 1000 node \
&& apk add --no-cache \
libstdc++ \
&& apk add --no-cache --virtual .build-deps \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:jessie-curl
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:wheezy
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:jessie
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -3,8 +3,7 @@ FROM alpine:3.4
ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 7.1.0
RUN addgroup -S node \
&& adduser -D -S -h /var/cache/node -s /sbin/nologin -G node node \
RUN adduser -D -u 1000 node \
&& apk add --no-cache \
libstdc++ \
&& apk add --no-cache --virtual .build-deps \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:jessie-curl
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \

View File

@ -1,6 +1,7 @@
FROM buildpack-deps:wheezy
RUN groupadd -r node && useradd -r -g node node
RUN groupadd --gid 1000 node \
&& useradd --uid 1000 --gid node --shell /bin/bash --create-home node
# gpg keys listed at https://github.com/nodejs/node
RUN set -ex \