From cf0700348bc1b19d4cd04a1b599c221b8e9743f3 Mon Sep 17 00:00:00 2001 From: Julian Wefers Date: Sun, 31 May 2026 14:28:56 +0200 Subject: [PATCH] Containerfile: cache dnf folder --- Containerfile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Containerfile b/Containerfile index 13ab3e2..ae1d8c9 100644 --- a/Containerfile +++ b/Containerfile @@ -1,9 +1,17 @@ FROM quay.io/fedora/fedora-bootc:44 # Install ZFS -RUN dnf install -y kernel-devel-$(uname -r | awk -F'-' '{print $1}') -RUN dnf install -y https://zfsonlinux.org/fedora/zfs-release-3-1$(rpm --eval "%{dist}").noarch.rpm -RUN dnf install -y zfs +# we want to keep ALL dnf downloaded packages in dnf cache, +# this is not the default, hackily add it to the config, +# assume there is not much in it. should be improved +RUN echo 'keepcache=True' >> /etc/dnf/dnf.conf + +# deps +RUN --mount=type=cache,target=/var/cache/libdnf5 <