Skip to content

Commit

Permalink
add cache only flag to dnf operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcusk19 committed Jan 7, 2025
1 parent 8bb1242 commit 75f692c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile.downstream
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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

Expand All @@ -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 \
Expand Down

0 comments on commit 75f692c

Please sign in to comment.