Browse Source

Replaced shadow with addgroup and adduser

release/v1.0
Thomas Boerger 6 years ago
parent
commit
972ce6b791
No known key found for this signature in database GPG Key ID: 5A388F55283960B6
  1. 13
      Dockerfile
  2. 13
      Dockerfile.rpi

13
Dockerfile

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

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

Loading…
Cancel
Save