diff --git a/containers/android/Containerfile b/containers/android/Containerfile index 14b2431..ad61e86 100644 --- a/containers/android/Containerfile +++ b/containers/android/Containerfile @@ -3,7 +3,9 @@ ARG studio_version="2025.1.4.8" ARG download_uri="https://redirector.gvt1.com/edgedl/android/studio/ide-zips/${studio_version}/android-studio-${studio_version}-linux.tar.gz" USER root -RUN dnf -y install libXext libXrender libXtst libX11 freetype freetype-devel mesa-libGLU + +RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \ + dnf -y --setopt=keepcache=1 install libXext libXrender libXtst libX11 freetype freetype-devel mesa-libGLU USER user RUN curl -Lo /tmp/studio.tar.gz "${download_uri}" && \ @@ -15,4 +17,4 @@ RUN curl -Lo /tmp/studio.tar.gz "${download_uri}" && \ RUN echo 'alias studio="$HOME/AndroidStudio/bin/studio"' >> /home/user/.bashrc RUN echo 'export ANDROID_HOME="$HOME/Android/Sdk"' >> /home/user/.bashrc -RUN echo 'export PATH="$ANDROID_HOME/platform-tools:$PATH"' >> /home/user/.bashrc \ No newline at end of file +RUN echo 'export PATH="$ANDROID_HOME/platform-tools:$PATH"' >> /home/user/.bashrc diff --git a/containers/dotnet/Containerfile b/containers/dotnet/Containerfile index 7825c4c..0d95101 100644 --- a/containers/dotnet/Containerfile +++ b/containers/dotnet/Containerfile @@ -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 \ No newline at end of file +RUN dotnet tool install --global dotnet-ef diff --git a/containers/fedora/Containerfile b/containers/fedora/Containerfile index 4287d83..cd04c62 100644 --- a/containers/fedora/Containerfile +++ b/containers/fedora/Containerfile @@ -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 && \ diff --git a/containers/rider/Containerfile b/containers/rider/Containerfile index 7bcb6be..44c9b39 100644 --- a/containers/rider/Containerfile +++ b/containers/rider/Containerfile @@ -3,7 +3,8 @@ ARG rider_version="2025.3.0.3" ARG download_uri="https://download.jetbrains.com/rider/JetBrains.Rider-${rider_version}.tar.gz" USER root -RUN dnf -y install libXext libXrender libXtst libX11 freetype freetype-devel +RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \ + dnf -y --setopt=keepcache=1 install libXext libXrender libXtst libX11 freetype freetype-devel USER user RUN curl -Lo /tmp/rider.tar.gz "${download_uri}" && \ @@ -12,4 +13,4 @@ RUN curl -Lo /tmp/rider.tar.gz "${download_uri}" && \ rm /tmp/rider.tar.gz && \ mv /home/user/Rider/JetBrains*/* /home/user/Rider -RUN echo 'alias rider="$HOME/Rider/bin/rider"' >> /home/user/.bashrc \ No newline at end of file +RUN echo 'alias rider="$HOME/Rider/bin/rider"' >> /home/user/.bashrc