From 2303ee52e63d6fd9119017c42377a473fe85fd3e Mon Sep 17 00:00:00 2001 From: Sebastian Butsch <5646364+wutsch0@users.noreply.github.com> Date: Thu, 30 Apr 2026 16:13:50 +0200 Subject: [PATCH] `apk add` with `--no-cache` Use `--no-cache` option on `apk add` to reduce docker layer size --- 5/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5/Dockerfile b/5/Dockerfile index 64355a2..9e5b248 100644 --- a/5/Dockerfile +++ b/5/Dockerfile @@ -35,7 +35,7 @@ RUN set -x \ | sort -u \ | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \ )" \ -&& apk add --virtual .phpexts-rundeps $runDeps \ +&& apk add --no-cache --virtual .phpexts-rundeps $runDeps \ && apk del --no-network .build-deps COPY *.php /var/www/html/