fix: cache dnf installs (and remove cache from images)
All checks were successful
Build containers / changes (pull_request) Successful in 2s
Build containers / base-image (pull_request) Successful in 1m8s
Build containers / dependent-images (php) (pull_request) Successful in 1m11s
Build containers / dependent-images (dotnet) (pull_request) Successful in 4m9s
Build containers / dependent-images (rust) (pull_request) Successful in 4m23s

This commit is contained in:
Job
2025-12-29 17:10:28 +01:00
parent b012abc3ed
commit 314e269881
4 changed files with 14 additions and 9 deletions

View File

@@ -1,10 +1,11 @@
FROM quay.io/fedora/fedora:43
# === install system packages ===
RUN dnf update -y && \
dnf -y install procps ping bash-completion glibc-langpack-en \
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf update -y && \
dnf -y --setopt=keepcache=1 install procps ping bash-completion glibc-langpack-en \
host-spawn dbus-launch \
git pnpm helix zip
git pnpm helix zip
# === setup user ===
RUN useradd -ms /bin/bash user && \