Skip to content

Commit 1c2db76

Browse files
committed
alpine add user
1 parent 3c1ecdb commit 1c2db76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

alpine/jdk/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ RUN apk add --update tzdata && \
99
echo $TZ > /etc/timezone && \
1010
rm -rf /var/cache/apk/*
1111

12+
##添加用户组###
13+
RUN apk add --update --no-cache shadow \
14+
&& usermod -aG root cube
15+
1216
RUN addgroup -S universe \
1317
&& adduser -D -S -h /home/pc -s /bin/sh -G universe pc \
1418
&& apk add --no-cache --update libstdc++

0 commit comments

Comments
 (0)