Add node group/user with gid/uid 1000 and a home directory.
This commit is contained in:
parent
87b641c1f3
commit
4a722c29c0
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue