File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ ARG PYTHON_VERSION=3
99# --------------------------------------------- base1
1010FROM rockylinux/rockylinux:10 AS base1
1111
12+ # STEP 1: Fix the root cause (unstable mirrors). Switch to the official CDN.
13+ RUN sed -i 's/mirrorlist= / #mirrorlist= /g' /etc/yum.repos.d /rocky*.repo && \
14+ sed -i 's/#baseurl= http:\/\/dl.rockylinux.org /baseurl= https:\/\/dl.rockylinux.org /g' /etc/yum.repos.d /rocky*.repo
15+
1216# In RHEL 9/10, the repository for dev packages is called CRB (instead of powertools)
1317RUN dnf install -y 'dnf-command(config-manager)' && \
1418 dnf config-manager --set-enabled crb
Original file line number Diff line number Diff line change @@ -40,6 +40,10 @@ RUN /usr/libexec/openssh/sshd-keygen rsa && \
4040# --------------------------------------------- base2_with_python-3
4141FROM base1 AS base2_with_python-3
4242
43+ # STEP 1: Fix the root cause (unstable mirrors). Switch to the official CDN.
44+ RUN sed -i 's/mirrorlist= / #mirrorlist= /g' /etc/yum.repos.d /rocky*.repo && \
45+ sed -i 's/#baseurl= http:\/\/dl.rockylinux.org /baseurl= https:\/\/dl.rockylinux.org /g' /etc/yum.repos.d /rocky*.repo
46+
4347# Rocky 9/10 installs python3.9 or higher (depending on the repository)
4448RUN dnf install -y --setopt= retries= 10 --setopt= max_parallel_downloads= 10 --allowerasing \
4549 python3 \
You can’t perform that action at this time.
0 commit comments