Update Dockerfile to remove EPEL repo and clean up mirror sources
This commit is contained in:
parent
50b71872e1
commit
c16a8295b2
@ -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 \
|
||||
|
Loading…
x
Reference in New Issue
Block a user