aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.rootless
diff options
context:
space:
mode:
authorMartin Michaelis2021-04-29 19:48:52 +0200
committerGitHub2021-04-29 19:48:52 +0200
commitd5761262862288764bae91b7b8e56dcc8f009238 (patch)
treeeef250d83d94cc56c9fdcc564ccddc2426ae37c5 /Dockerfile.rootless
parentf67e36097a79df36c676e9caf73acd3e78c32cae (diff)
Remove random password in Dockerfiles (#15362)
* Remove random password of git user in dockerfile * Disable git user account in rootless dockerfile
Diffstat (limited to 'Dockerfile.rootless')
-rw-r--r--Dockerfile.rootless3
1 files changed, 1 insertions, 2 deletions
diff --git a/Dockerfile.rootless b/Dockerfile.rootless
index e91720dd5..a379babc2 100644
--- a/Dockerfile.rootless
+++ b/Dockerfile.rootless
@@ -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