summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-03-20 09:42:06 +0000
committerJoe Carstairs <me@joeac.net>2026-03-21 22:26:56 +0000
commit8283e6819f7a21777cae200a38fa19c08ce82b4b (patch)
tree4dfc4647dff70b9b6a54300e074b0686129f387d
parent8ad2307fb74813bc7b31708f139e081e50546fa8 (diff)
apk del in capsule/Dockerfile to cut layer size
-rw-r--r--capsule/Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/capsule/Dockerfile b/capsule/Dockerfile
index c5912df..231860e 100644
--- a/capsule/Dockerfile
+++ b/capsule/Dockerfile
@@ -2,6 +2,7 @@ FROM alpine:3.23 AS agate
RUN apk --update --no-cache add rust cargo \
&& wget -O - https://github.com/mbrubeck/agate/archive/refs/tags/v3.3.20.tar.gz | tar -xz \
&& cargo install --path agate-3.3.20/ \
+ && apk del rust cargo \
&& rm -rf agate-3.3.20 agate-target
FROM alpine:3.23 AS comitium
@@ -9,6 +10,7 @@ RUN apk --no-cache add make go scdoc
RUN wget -O - https://git.sr.ht/~nytpu/comitium/archive/v1.8.2.tar.gz | tar -xz \
&& make --directory=comitium-v1.8.2 \
&& mv comitium-v1.8.2/build/comitium /usr/local/bin/comitium \
+ && apk del make go scdoc \
&& rm -rf comitium-v1.8.2
FROM alpine:3.23 AS final