chore: 更新 Dockerfile 以使用 yum-utils 并简化命令

This commit is contained in:
xiao 2024-12-04 18:25:08 +08:00 committed by cnb
parent 715f8559d9
commit 058636ffcc

View File

@ -5,8 +5,9 @@ RUN sed -e 's|^mirrorlist=|#mirrorlist=|g' \
-e 's|^#baseurl=http://dl.rockylinux.org/$contentdir|baseurl=https://mirrors.tencent.com/rocky|g' \
-i.bak \
/etc/yum.repos.d/rocky-*.repo \
&& yum install yum-utils \
&& yum makecache \
&& dnf config-manager --set-enabled devel \
&& yum config-manager --set-enabled devel \
&& yum update -y \
&& yum install -y \
glibc-locale-source \