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

@@ -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
RUN echo 'export PATH="$ANDROID_HOME/platform-tools:$PATH"' >> /home/user/.bashrc