Skip to content

Commit d20d305

Browse files
Added the default user to the alpine variant
1 parent 2186868 commit d20d305

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.2
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.1/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.1.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)