From 75f692c240d7174b9e42af0013f416ae5ae4babd Mon Sep 17 00:00:00 2001 From: Marcus Kok Date: Tue, 7 Jan 2025 14:27:32 -0500 Subject: [PATCH] add cache only flag to dnf operations --- Dockerfile.downstream | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile.downstream b/Dockerfile.downstream index 2cea448659..01f22fde90 100644 --- a/Dockerfile.downstream +++ b/Dockerfile.downstream @@ -9,7 +9,10 @@ ENV PATH=/app/bin/:$PATH \ ENV PYTHONUSERBASE /app ENV TZ UTC RUN set -ex\ - ; microdnf -y --setopt=tsflags=nodocs install \ + ; microdnf -y module enable nginx:1.22 \ + ; microdnf -y module enable python39:3.9 \ + ; microdnf update -y \ + ; microdnf -y --setopt=tsflags=nodocs --cacheonly install \ dnsmasq \ memcached \ nginx \ @@ -21,7 +24,7 @@ RUN set -ex\ python3-gpg \ skopeo \ findutils \ - ; microdnf -y reinstall tzdata \ + ; microdnf -y --cacheonly reinstall tzdata \ ; microdnf remove platform-python-pip python39-pip \ ; microdnf -y clean all && rm -rf /var/cache/yum @@ -39,7 +42,7 @@ RUN set -ex\ FROM base AS build-python ENV PYTHONDONTWRITEBYTECODE 1 RUN set -ex\ - ; microdnf -y --setopt=tsflags=nodocs install \ + ; microdnf -y --setopt=tsflags=nodocs --cacheonly install \ gcc-c++ \ git \ openldap-devel \