1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-04 14:46:57 -05:00

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 && \
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

View File

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