Replaced shadow with addgroup and adduser

tokarchuk/v1.17
Thomas Boerger 8 years ago
parent 65d0426b91
commit 972ce6b791
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6
  1. 13
      Dockerfile
  2. 13
      Dockerfile.rpi

@ -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

@ -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

Loading…
Cancel
Save