Browse Source

docker证书

master
huangjiajun 1 day ago
parent
commit
2a1cd18dbc
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      Dockerfile

+ 5
- 1
Dockerfile View File

@@ -26,7 +26,11 @@ COPY docs docs
# 时区纠正 # 时区纠正
RUN rm -f /etc/localtime \ RUN rm -f /etc/localtime \
&& ln -sv /usr/share/zoneinfo/Asia/Shanghai /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 # 在build阶段复制可执行的go二进制文件app
COPY --from=build /go/release/egg ./egg COPY --from=build /go/release/egg ./egg




Loading…
Cancel
Save