Update Dockerfile to remove EPEL repo and clean up mirror sources

This commit is contained in:
xiao 2024-12-04 11:53:21 +08:00
parent 50b71872e1
commit c16a8295b2

View File

@ -3,8 +3,6 @@ FROM centos:centos7.9.2009
# 切换 CentOS 镜像源为 CentOS Vault更新包列表并安装依赖
RUN curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.tencent.com/repo/centos7_base.repo \
&& sed -i -e '/mirrors.cloud.tencent.com/d' -e '/mirrors.tencent.com/d' /etc/yum.repos.d/CentOS-Base.repo \
&& curl -o /etc/yum.repos.d/epel.repo https://mirrors.tencent.com/repo/epel-7.repo \
&& sed -i -e '/mirrors.cloud.tencent.com/d' -e '/mirrors.tencent.com/d' /etc/yum.repos.d/epel.repo \
&& yum clean all \
&& yum makecache \
&& yum update -y \