apk del in capsule/Dockerfile to cut layer size

This commit is contained in:
2026-03-20 09:42:06 +00:00
parent 8ad2307fb7
commit 8283e6819f
+2
View File
@@ -2,6 +2,7 @@ FROM alpine:3.23 AS agate
RUN apk --update --no-cache add rust cargo \ 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 \ && wget -O - https://github.com/mbrubeck/agate/archive/refs/tags/v3.3.20.tar.gz | tar -xz \
&& cargo install --path agate-3.3.20/ \ && cargo install --path agate-3.3.20/ \
&& apk del rust cargo \
&& rm -rf agate-3.3.20 agate-target && rm -rf agate-3.3.20 agate-target
FROM alpine:3.23 AS comitium 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 \ RUN wget -O - https://git.sr.ht/~nytpu/comitium/archive/v1.8.2.tar.gz | tar -xz \
&& make --directory=comitium-v1.8.2 \ && make --directory=comitium-v1.8.2 \
&& mv comitium-v1.8.2/build/comitium /usr/local/bin/comitium \ && mv comitium-v1.8.2/build/comitium /usr/local/bin/comitium \
&& apk del make go scdoc \
&& rm -rf comitium-v1.8.2 && rm -rf comitium-v1.8.2
FROM alpine:3.23 AS final FROM alpine:3.23 AS final