summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile2
-rw-r--r--Dockerfile.rootless3
2 files changed, 2 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index e57b93d1ae..3445544a94 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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
diff --git a/Dockerfile.rootless b/Dockerfile.rootless
index e91720dd5f..a379babc2d 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