From 14d6579893aec06bcca4c0346a629282e5171a2d Mon Sep 17 00:00:00 2001 From: "Simon L." Date: Fri, 6 Feb 2026 17:23:02 +0100 Subject: [PATCH] redis and apache: delete openssl after using it Signed-off-by: Simon L. --- Containers/apache/Dockerfile | 3 ++- Containers/redis/Dockerfile | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Containers/apache/Dockerfile b/Containers/apache/Dockerfile index 9ccadfb8..ae3a6885 100644 --- a/Containers/apache/Dockerfile +++ b/Containers/apache/Dockerfile @@ -79,7 +79,8 @@ RUN set -ex; \ chmod 777 -R /usr/local/apache2/logs; \ 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 diff --git a/Containers/redis/Dockerfile b/Containers/redis/Dockerfile index cc9181ad..b3dbf2cf 100644 --- a/Containers/redis/Dockerfile +++ b/Containers/redis/Dockerfile @@ -10,6 +10,7 @@ RUN set -ex; \ \ # Give root a random password echo "root:$(openssl rand -base64 12)" | chpasswd; \ + apk --no-cache del openssl; \ \ # Get rid of unused binaries rm -f /usr/local/bin/gosu;