feature: 不提前安装组件

This commit is contained in:
2025-06-14 21:31:11 +08:00
parent 46632479aa
commit de8f8bf103
+8 -6
View File
@@ -2,10 +2,12 @@ FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:
LABEL MAINTAINER="tianjun@odboy.cn" LABEL MAINTAINER="tianjun@odboy.cn"
ENV TimeZone=Asia/Shanghai ENV TimeZone=Asia/Shanghai
WORKDIR /home/admin WORKDIR /home/admin
#RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone; \
# sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/' /etc/yum.repos.d/*.repo; \
# yum install \
# tar \
# wget \
# net-tools \
# bind-utils -y;
RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone; \ RUN ln -snf /usr/share/zoneinfo/$TimeZone /etc/localtime && echo $TimeZone > /etc/timezone; \
sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/' /etc/yum.repos.d/*.repo; \ sed -i 's/mirrors.cloud.aliyuncs.com/mirrors.aliyun.com/' /etc/yum.repos.d/*.repo;
yum install \
tar \
wget \
net-tools \
bind-utils -y;