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

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

Loading…
Cancel
Save