Replaced shadow with addgroup and adduser

This commit is contained in:
Thomas Boerger 2016-11-28 17:22:22 +01:00
parent 65d0426b91
commit 972ce6b791
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6
2 changed files with 10 additions and 16 deletions

View File

@ -6,7 +6,6 @@ EXPOSE 22 3000
RUN apk update && \ RUN apk update && \
apk add \ apk add \
su-exec \ su-exec \
shadow \
ca-certificates \ ca-certificates \
sqlite \ sqlite \
bash \ bash \
@ -18,17 +17,15 @@ RUN apk update && \
tzdata && \ tzdata && \
rm -rf \ rm -rf \
/var/cache/apk/* && \ /var/cache/apk/* && \
groupadd \ addgroup \
-r \
-g 1000 \ -g 1000 \
git && \ git && \
useradd \ adduser \
-r -M \ -S -H -D \
-p '*' \ -h /data/git \
-d /data/git \
-s /bin/bash \ -s /bin/bash \
-u 1000 \ -u 1000 \
-g git \ -G git \
git git
ENV USER git ENV USER git

View File

@ -6,7 +6,6 @@ EXPOSE 22 3000
RUN apk update && \ RUN apk update && \
apk add \ apk add \
su-exec \ su-exec \
shadow \
ca-certificates \ ca-certificates \
sqlite \ sqlite \
bash \ bash \
@ -18,17 +17,15 @@ RUN apk update && \
tzdata && \ tzdata && \
rm -rf \ rm -rf \
/var/cache/apk/* && \ /var/cache/apk/* && \
groupadd \ addgroup \
-r \
-g 1000 \ -g 1000 \
git && \ git && \
useradd \ adduser \
-r -M \ -S -H -D \
-p '*' \ -h /data/git \
-d /data/git \
-s /bin/bash \ -s /bin/bash \
-u 1000 \ -u 1000 \
-g git \ -G git \
git git
ENV USER git ENV USER git