Skip to content

Commit 3e77b87

Browse files
committed
adduser
1 parent 03d2022 commit 3e77b87

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

alpine/alpine仓库.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://pkgs.alpinelinux.org/packages

alpine/jdk/Dockerfile

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

12+
RUN addgroup -S universe \
13+
&& adduser -D -S -h /home/pc -s /bin/sh -G universe pc \
14+
&& apk add --no-cache --update libstdc++
15+
USER pc
16+
WORKDIR /home/pc
17+
1218
RUN apk --no-cache add --update curl bash
1319

1420

0 commit comments

Comments
 (0)