diff options
author | Thomas Boerger <tboerger@suse.de> | 2016-11-28 17:22:22 +0100 |
---|---|---|
committer | Thomas Boerger <tboerger@suse.de> | 2016-11-28 17:22:22 +0100 |
commit | 972ce6b791244ca99959a725aed693628ae895ef (patch) | |
tree | cc92ffea9829721508caee9c87389f67af5baaa0 /Dockerfile | |
parent | 65d0426b915472bd680788158d0c66bbbec9716e (diff) | |
download | gitea-972ce6b791244ca99959a725aed693628ae895ef.tar.gz gitea-972ce6b791244ca99959a725aed693628ae895ef.zip |
Replaced shadow with addgroup and adduser
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Dockerfile b/Dockerfile index fd25c88346..c5aba1cfe9 100644 --- a/Dockerfile +++ b/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 |