Files
kenaito-lab/System/Dockerfile
T
odboy 90da24086c refactor: 移除子镜像中无效的时区设置与 yum 换源命令
- ALinux3 官方源已使用 mirrors.aliyun.com,sed 换源为空操作
- 时区已由 ENV TimeZone 控制,/etc/localtime 运行时被宿主机覆盖
- 同步更新 VULNERABILITY_FIX.md 示例
2025-07-19 21:15:16 +08:00

14 lines
506 B
Docker

FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:220901.1
LABEL MAINTAINER="tianjun@odboy.cn"
ENV TimeZone=Asia/Shanghai
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 yum update -y && yum clean all; \
rm -rf /usr/lib/python3.6;