0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-21 23:03:39 +01:00

Remove random password in Dockerfiles (#15362)

* Remove random password of git user in dockerfile

* Disable git user account in rootless dockerfile
This commit is contained in:
Martin Michaelis 2021-04-29 19:48:52 +02:00 committed by GitHub
parent f67e36097a
commit d576126286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -53,7 +53,7 @@ RUN addgroup \
-u 1000 \
-G git \
git && \
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
echo "git:*" | chpasswd -e
ENV USER git
ENV GITEA_CUSTOM /data/gitea

View file

@ -46,8 +46,7 @@ RUN addgroup \
-s /bin/bash \
-u 1000 \
-G git \
git && \
echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
git
RUN mkdir -p /var/lib/gitea /etc/gitea
RUN chown git:git /var/lib/gitea /etc/gitea