Skip to content

Commit

Permalink
Dockerfile: Replace yum with dnf
Browse files Browse the repository at this point in the history
  • Loading branch information
ebocchi committed Jun 17, 2024
1 parent 8271674 commit 919e7d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ FROM cern/alma9-base:20240501-1
MAINTAINER Enrico Bocchi <enrico.bocchi@cern.ch>

# Install curl for healthchecks
RUN yum -y install \
RUN dnf -y install \
curl && \
yum clean all && \
dnf clean all && \
rm -rf /var/cache/yum

# Create the squid user with uid:gid: 5000:5000
Expand All @@ -17,9 +17,9 @@ ADD ./repos/cern-frontier.repo /etc/yum.repos.d/cern-frontier.repo
ADD ./repos/RPM-GPG-KEY-cern-frontier /etc/pki/rpm-gpg/RPM-GPG-KEY-cern-frontier

ARG SQUID_VERSION
RUN yum -y install \
RUN dnf -y install \
frontier-squid${SQUID_VERSION} && \
yum clean all && \
dnf clean all && \
rm -rf /var/cache/yum

# Expose the port on which squid listens
Expand Down

0 comments on commit 919e7d2

Please sign in to comment.