Shave off ~20MB from resulting container image by purging apt cache

This commit is contained in:
Slavi Pantaleev
2024-09-19 18:18:56 +03:00
parent d59e6b59c2
commit 354063abb7

View File

@@ -32,7 +32,9 @@ RUN --mount=type=cache,target=/target,sharing=locked \
FROM docker.io/debian:bookworm-slim
RUN apt-get update && apt-get install -y ca-certificates sqlite3
RUN apt-get update && apt-get install -y ca-certificates sqlite3 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app