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 14aaf28
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ 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 && \
rm -rf /var/cache/yum
dnf clean all && \
rm -rf /var/cache/dnf

# Create the squid user with uid:gid: 5000:5000
RUN /usr/sbin/groupadd -g 5000 squid && \
Expand All @@ -17,10 +17,10 @@ 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 && \
rm -rf /var/cache/yum
dnf clean all && \
rm -rf /var/cache/dnf

# Expose the port on which squid listens
EXPOSE 3128/tcp
Expand Down

0 comments on commit 14aaf28

Please sign in to comment.