From ed7ec5dff8b87c89223056d9f6c231577fe238b6 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Sat, 22 Mar 2025 15:15:36 -0700 Subject: feat: Use bind mounts to keep final image clean (#92) --- Containerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Containerfile') diff --git a/Containerfile b/Containerfile index 80b04aa..015dfaf 100644 --- a/Containerfile +++ b/Containerfile @@ -15,7 +15,9 @@ FROM ghcr.io/ublue-os/bazzite:stable COPY build.sh /tmp/build.sh -RUN mkdir -p /var/lib/alternatives && \ +RUN --mount=type=cache,dst=/var/cache \ + --mount=type=cache,dst=/var/log \ + --mount=type=tmpfs,dst=/tmp \ /tmp/build.sh && \ ostree container commit -- cgit v1.2.3