fix: cache dnf installs (and remove cache from images)

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,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
RUN echo 'alias rider="$HOME/Rider/bin/rider"' >> /home/user/.bashrc