正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -6,6 +6,8 @@ ARG PROJECT=core | @@ -6,6 +6,8 @@ ARG PROJECT=core | ||
6 | WORKDIR /build | 6 | WORKDIR /build |
7 | COPY . . | 7 | COPY . . |
8 | 8 | ||
9 | +RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories | ||
10 | +RUN apk update --no-cache && apk add --no-cache tzdata | ||
9 | RUN go env -w GO111MODULE=on \ | 11 | RUN go env -w GO111MODULE=on \ |
10 | && go env -w GOPROXY=https://goproxy.cn,direct \ | 12 | && go env -w GOPROXY=https://goproxy.cn,direct \ |
11 | && go env -w CGO_ENABLED=0 \ | 13 | && go env -w CGO_ENABLED=0 \ |
@@ -28,7 +30,9 @@ LABEL org.opencontainers.image.authors=${AUTHOR} | @@ -28,7 +30,9 @@ LABEL org.opencontainers.image.authors=${AUTHOR} | ||
28 | WORKDIR /app | 30 | WORKDIR /app |
29 | ENV PROJECT=${PROJECT} | 31 | ENV PROJECT=${PROJECT} |
30 | ENV CONFIG_FILE=${CONFIG_FILE} | 32 | ENV CONFIG_FILE=${CONFIG_FILE} |
33 | +ENV TZ Asia/Shanghai | ||
31 | 34 | ||
35 | +COPY --from=builder /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/Asia/Shanghai | ||
32 | COPY --from=builder /build/api/${PROJECT} ./ | 36 | COPY --from=builder /build/api/${PROJECT} ./ |
33 | COPY --from=builder /build/cmd/discuss/api/etc/${CONFIG_FILE} ./etc/ | 37 | COPY --from=builder /build/cmd/discuss/api/etc/${CONFIG_FILE} ./etc/ |
34 | 38 |
-
请 注册 或 登录 后发表评论