代码拉取完成,页面将自动刷新
From fc3cfc5c0c6ec35ba8499afc0476dedde8cdb594 Mon Sep 17 00:00:00 2001
From: mask <[email protected]>
Date: Thu, 9 Nov 2023 15:31:04 +0800
Subject: [PATCH] Fixed bug where `cp -f` actually failed, (#4942)
because the symlink already existed.
---
docker/base/amd64/Dockerfile | 2 +-
docker/base/arm64/Dockerfile | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docker/base/amd64/Dockerfile b/docker/base/amd64/Dockerfile
index 845fa7328d..fefdf1dd73 100644
--- a/docker/base/amd64/Dockerfile
+++ b/docker/base/amd64/Dockerfile
@@ -22,7 +22,7 @@ RUN \
yum clean all && yum makecache
RUN \
- /bin/cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
+ /usr/bin/ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'root:Hello1234' | chpasswd && \
groupadd -r admin && useradd -g admin admin && \
yum install -y man && \
diff --git a/docker/base/arm64/Dockerfile b/docker/base/arm64/Dockerfile
index 0eb5e6ea83..f4b1ce253c 100644
--- a/docker/base/arm64/Dockerfile
+++ b/docker/base/arm64/Dockerfile
@@ -22,7 +22,7 @@ RUN \
yum clean all && yum makecache
RUN \
- /bin/cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
+ /usr/bin/ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'root:Hello1234' | chpasswd && \
groupadd -r admin && useradd -g admin admin && \
yum install -y man && \
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。