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 git.plabble.org/maurice/fedora:main
USER root
RUN dnf -y install dotnet-sdk-9.0 dotnet-sdk-10.0
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
dnf -y --setopt=keepcache=1 install dotnet-sdk-9.0 dotnet-sdk-10.0
COPY install-roslyn.sh /tmp/install-roslyn.sh
RUN chmod +x /tmp/install-roslyn.sh && /tmp/install-roslyn.sh
USER user
RUN dotnet tool install --global dotnet-ef
RUN dotnet tool install --global dotnet-ef