This commit is contained in:
@@ -11,6 +11,10 @@ RUN apk add --no-cache git ca-certificates tzdata
|
||||
|
||||
# 复制 go.mod 和 go.sum(利用 Docker 缓存)
|
||||
COPY go.mod go.sum ./
|
||||
|
||||
# 使用国内 Go 代理加速依赖下载
|
||||
ENV GOPROXY=https://goproxy.cn,direct
|
||||
|
||||
RUN go mod download
|
||||
|
||||
# 复制源代码
|
||||
|
||||
Reference in New Issue
Block a user