summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2023-09-27 18:08:10 +0800
committerfumingwei <[email protected]>2023-09-27 18:11:11 +0800
commit378fcd95947eeedb9563bbf1006e5aea6a6e9871 (patch)
tree3fab7a41a8d263caf7c2eaaaaed69bf229915e9a
parent314fb5976dac51a6d3ba6cde0f37bafc3c2a34df (diff)
feature:更新yum源为阿里源
-rw-r--r--Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 198ac6f..b03bd54 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -11,6 +11,10 @@ COPY aksusbd-8.23-1.x86_64.rpm /tmp/aksusbd-8.23-1.x86_64.rpm
COPY envconfig.cfgx /tmp/envconfig.cfgx
RUN cp /tmp/repo.internal.geedge.net.repo /etc/yum.repos.d/ && \
+ sed -e 's|^mirrorlist=|#mirrorlist=|g' \
+ -e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.aliyun.com/rockylinux|g' \
+ -i.bak \
+ /etc/yum.repos.d/Rocky-*.repo && \
yum install -y gcc gcc-c++ make epel-release patch wget socat automake autoconf libtool rpm-build git yum-utils && \
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-archive-8.repo && \
sed -i 's/epel-archive/epel/g' /etc/yum.repos.d/epel.repo && \