From 34f297fe4817249f9507eec220ffc5d32f2e26b6 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 +- 5/fastcgi/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/5/Dockerfile b/5/Dockerfile index cb1fa39..6919539 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/ diff --git a/5/fastcgi/Dockerfile b/5/fastcgi/Dockerfile index 3baff28..79368c7 100644 --- a/5/fastcgi/Dockerfile +++ b/5/fastcgi/Dockerfile @@ -31,7 +31,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/