From 2a1cd18dbcbd656e84ce126a224571ef75e34413 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Fri, 22 Nov 2024 19:13:51 +0800 Subject: [PATCH] =?UTF-8?q?docker=E8=AF=81=E4=B9=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9b1787d..f6fa426 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,11 @@ COPY docs docs # 时区纠正 RUN rm -f /etc/localtime \ && ln -sv /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ - && echo "Asia/Shanghai" > /etc/timezone + && echo "Asia/Shanghai" > /etc/timezone \ + \ +# 更新 CA 证书库 +RUN apt-get update && apt-get install -y ca-certificates + # 在build阶段复制可执行的go二进制文件app COPY --from=build /go/release/egg ./egg