Skip to content

Commit 7baca91

Browse files
authored
feat: change mirror for centos7 image
1 parent 48b25d8 commit 7baca91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

kcl_images/docker/kcl-builder-centos7/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ FROM centos:centos7
88
# https://access.redhat.com/articles/2050743
99
RUN touch /etc/sysconfig/64bit_strstr_via_64bit_strstr_sse2_unaligned
1010

11+
RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak \
12+
&& curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo \
13+
&& yum clean all \
14+
&& yum makecache
15+
1116
# ---------------------------------------------------------------------------------
1217
# Please note: The following steps are to install the dependency packages
1318
# needed to compile CPython for centos7, see the

0 commit comments

Comments
 (0)