From 269d168a8518c96347f359be55f43cb1c02299a7 Mon Sep 17 00:00:00 2001 From: Cosmic Horror Date: Thu, 19 Mar 2026 14:34:28 -0600 Subject: [PATCH] avoid storing `apk` cache files --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7142dae..f705397 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,7 @@ env CGO_ENABLED=1 arg TAG='v1.12.0-alpha' workdir /app -run apk add git gcc musl-dev +run apk add --no-cache git gcc musl-dev run git clone -b ${TAG} https://tangled.org/@tangled.org/core . run go build -o /usr/bin/knot -ldflags '-s -w -extldflags "-static"' ./cmd/knot @@ -26,7 +26,7 @@ arg GID=1000 copy rootfs . run chmod 755 /etc run chmod -R 755 /etc/s6-overlay -run apk add shadow s6-overlay execline openssl openssh git curl bash +run apk add --no-cache shadow s6-overlay execline openssl openssh git curl bash run groupadd -g $GID -f git run useradd -u $UID -g $GID -d /home/git git run openssl rand -hex 16 | passwd --stdin git -- 2.51.2