summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Dockerfile2
-rw-r--r--Dockerfile.aarch642
-rw-r--r--Dockerfile.rpi2
3 files changed, 3 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index cc9ec311be..a063f2e10a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -24,7 +24,7 @@ RUN addgroup \
-u 1000 \
-G git \
git && \
- echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
+ echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
ENV USER git
ENV GITEA_CUSTOM /data/gitea
diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64
index 9f91ae90b6..a9dc3adc19 100644
--- a/Dockerfile.aarch64
+++ b/Dockerfile.aarch64
@@ -23,7 +23,7 @@ RUN addgroup \
-u 1000 \
-G git \
git && \
- echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
+ echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
ENV USER git
ENV GITEA_CUSTOM /data/gitea
diff --git a/Dockerfile.rpi b/Dockerfile.rpi
index 8ecfd19a1e..373b8025af 100644
--- a/Dockerfile.rpi
+++ b/Dockerfile.rpi
@@ -24,7 +24,7 @@ RUN addgroup \
-u 1000 \
-G git \
git && \
- echo "git:$(date +%s | sha256sum | base64 | head -c 32)" | chpasswd
+ echo "git:$(dd if=/dev/urandom bs=24 count=1 status=none | base64)" | chpasswd
ENV USER git
ENV GITEA_CUSTOM /data/gitea