do not give root a random password if login is already disabled by default

Signed-off-by: Zoey <zoey@z0ey.de>
This commit is contained in:
Zoey
2026-08-25 13:00:24 +02:00
committed by Simon L.
parent a95737744c
commit fee4903fef
6 changed files with 4 additions and 31 deletions
+1 -6
View File
@@ -11,12 +11,7 @@ RUN set -ex; \
ca-certificates \
netcat-openbsd \
tzdata \
bash \
openssl; \
# Give root a random password
echo "root:$(openssl rand -base64 12)" | chpasswd; \
apk del --no-cache \
openssl; \
bash; \
delgroup www-data; \
addgroup -g 33 -S www-data; \
adduser -u 33 -S -D -G www-data -H -s /sbin/nologin www-data;