Skip to content

Commit 611588d

Browse files
Added the default user
1 parent 92716c4 commit 611588d

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

4.6/alpine/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ FROM alpine:3.4
33
ENV NPM_CONFIG_LOGLEVEL info
44
ENV NODE_VERSION 4.6.1
55

6-
RUN apk add --no-cache \
6+
RUN addgroup -S node \
7+
&& adduser -D -S -h /var/cache/node -s /sbin/nologin -G node node \
8+
&& apk add --no-cache \
79
libstdc++ \
810
&& apk add --no-cache --virtual .build-deps \
911
binutils-gold \

6.9/alpine/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ FROM alpine:3.4
33
ENV NPM_CONFIG_LOGLEVEL info
44
ENV NODE_VERSION 6.9.1
55

6-
RUN apk add --no-cache \
6+
RUN addgroup -S node \
7+
&& adduser -D -S -h /var/cache/node -s /sbin/nologin -G node node \
8+
&& apk add --no-cache \
79
libstdc++ \
810
&& apk add --no-cache --virtual .build-deps \
911
binutils-gold \

7.0/alpine/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ FROM alpine:3.4
33
ENV NPM_CONFIG_LOGLEVEL info
44
ENV NODE_VERSION 7.0.0
55

6-
RUN apk add --no-cache \
6+
RUN addgroup -S node \
7+
&& adduser -D -S -h /var/cache/node -s /sbin/nologin -G node node \
8+
&& apk add --no-cache \
79
libstdc++ \
810
&& apk add --no-cache --virtual .build-deps \
911
binutils-gold \

Dockerfile-alpine.template

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ FROM alpine:3.4
33
ENV NPM_CONFIG_LOGLEVEL info
44
ENV NODE_VERSION 0.0.0
55

6-
RUN apk add --no-cache \
6+
RUN addgroup -S node \
7+
&& adduser -D -S -h /var/cache/node -s /sbin/nologin -G node node \
8+
&& apk add --no-cache \
79
libstdc++ \
810
&& apk add --no-cache --virtual .build-deps \
911
binutils-gold \

0 commit comments

Comments
 (0)