diff options
author | Pontus Leitzler | 2017-08-13 08:18:05 +0200 |
---|---|---|
committer | Lunny Xiao | 2017-08-13 14:18:05 +0800 |
commit | 2282e240282649880d6b8d8d11cc378dc3d64d41 (patch) | |
tree | 18b2b788e2b67b84c03d5f3d7b02e8251ab78686 /Dockerfile | |
parent | f960e19c590d27fe62a3a6241f1ea8b7fadde13a (diff) |
Use /dev/urandom to create random password (#2298)
* Make sure generated password is random
Use /dev/urandom to get a 32 char password
* Make sure generated password is random
Use /dev/urandom to generate 32 char password
* Make sure generated password is random
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile index cc9ec311b..a063f2e10 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 |