redis and apache: delete openssl after using it

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L. 2026-02-06 17:23:02 +01:00
parent a803d1c098
commit 14d6579893
2 changed files with 3 additions and 1 deletions

View file

@ -79,7 +79,8 @@ RUN set -ex; \
chmod 777 -R /usr/local/apache2/logs; \ chmod 777 -R /usr/local/apache2/logs; \
rm -rf /usr/local/apache2/cgi-bin/; \ rm -rf /usr/local/apache2/cgi-bin/; \
\ \
echo "root:$(openssl rand -base64 12)" | chpasswd echo "root:$(openssl rand -base64 12)" | chpasswd; \
apk --no-cache del openssl
USER 33 USER 33

View file

@ -10,6 +10,7 @@ RUN set -ex; \
\ \
# Give root a random password # Give root a random password
echo "root:$(openssl rand -base64 12)" | chpasswd; \ echo "root:$(openssl rand -base64 12)" | chpasswd; \
apk --no-cache del openssl; \
\ \
# Get rid of unused binaries # Get rid of unused binaries
rm -f /usr/local/bin/gosu; rm -f /usr/local/bin/gosu;