We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7e4a16 commit 0cf6697Copy full SHA for 0cf6697
Dockerfile
@@ -10,15 +10,16 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
10
RUN go env -w GOPROXY=https://goproxy.io
11
RUN go env -w GOSUMDB=off
12
13
-# 设置上海时区
14
-RUN cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone
15
# 官方并没有提供预编译的包,需要自己编译,但是直接编译的话会提示报错,需要在先安装一下g++
16
RUN apk add --no-cache --virtual .build-deps \
17
ca-certificates \
18
gcc \
19
g++ \
20
git
21
+# 设置上海时区
+RUN apk add -U tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && apk del tzdata
22
+
23
# 设置工作目录
24
WORKDIR /app
25
0 commit comments