refactor: 移除子镜像中无效的时区设置与 yum 换源命令
- ALinux3 官方源已使用 mirrors.aliyun.com,sed 换源为空操作 - 时区已由 ENV TimeZone 控制,/etc/localtime 运行时被宿主机覆盖 - 同步更新 VULNERABILITY_FIX.md 示例
This commit is contained in:
@@ -7,9 +7,7 @@ ENV PATH="${NGINX_HOME}/sbin:$PATH"
|
||||
WORKDIR /home/admin
|
||||
# https://tengine.taobao.org/download/tengine-3.1.0.tar.gz
|
||||
ADD https://tengine.taobao.org/download/tengine-${TENGINE_VERSION}.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 \
|
||||
gcc \
|
||||
gcc-c++ \
|
||||
make \
|
||||
|
||||
Reference in New Issue
Block a user