Skip to content

Commit

Permalink
Fix updater.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Dec 23, 2024
1 parent 07181cd commit 789b2cd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions updater.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,15 @@ RUN --mount=type=cache,target=/var/cache/dnf \
findutils \
make \
&& dnf clean all \
&& rm /etc/yum.repos.d/*.repo \
&& dnf config-manager \
--add-repo https://download.docker.com/linux/fedora/docker-ce.repo
&& rm /etc/yum.repos.d/*.repo

# Add docker-ce RPM repository:
# - Fedora < 41: dnf config-manager --add-repo URL
# - Fedora >= 41: dnf config-manager addrepo --from-repofile=URL
RUN dnf config-manager \
--add-repo https://download.docker.com/linux/fedora/docker-ce.repo \
|| dnf config-manager addrepo \
--from-repofile=https://download.docker.com/linux/fedora/docker-ce.repo

COPY fedora.repo /etc/yum.repos.d/
RUN sed '/fastestmirror=/d' -i /etc/yum.repos.d/fedora.repo
Expand Down

0 comments on commit 789b2cd

Please sign in to comment.