refactor: 移除子镜像中无效的时区设置与 yum 换源命令
- ALinux3 官方源已使用 mirrors.aliyun.com,sed 换源为空操作 - 时区已由 ENV TimeZone 控制,/etc/localtime 运行时被宿主机覆盖 - 同步更新 VULNERABILITY_FIX.md 示例
This commit is contained in:
@@ -5,9 +5,7 @@ ENV JAVA_HOME=/usr/local/java
|
||||
ENV PATH="${JAVA_HOME}/bin:$PATH"
|
||||
WORKDIR /home/admin
|
||||
ADD jdk-21.0.2.tar.gz ./
|
||||
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 \
|
||||
RUN yum install \
|
||||
tar \
|
||||
wget \
|
||||
net-tools \
|
||||
|
||||
Reference in New Issue
Block a user