refactor: 移除子镜像中无效的时区设置与 yum 换源命令
- ALinux3 官方源已使用 mirrors.aliyun.com,sed 换源为空操作 - 时区已由 ENV TimeZone 控制,/etc/localtime 运行时被宿主机覆盖 - 同步更新 VULNERABILITY_FIX.md 示例
This commit is contained in:
@@ -6,9 +6,7 @@ ENV PATH="${DOTNET_HOME}:$PATH"
|
||||
WORKDIR /home/admin
|
||||
# https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-8.0.10-linux-x64-binaries
|
||||
ADD https://download.visualstudio.microsoft.com/download/pr/6d143cf6-e215-428e-bcde-9fd50ea0e1be/99652e31b3e0161a3f1f933e0bedf223/aspnetcore-runtime-8.0.10-linux-x64.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 \
|
||||
libffi-devel \
|
||||
zlib-devel \
|
||||
bzip2-devel \
|
||||
|
||||
Reference in New Issue
Block a user