镜像源
This commit is contained in:
@@ -6,7 +6,8 @@ WORKDIR /app
|
||||
|
||||
# 复制源代码
|
||||
COPY . .
|
||||
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
||||
# 设置GOPROXY 阿里云
|
||||
RUN go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/,direct
|
||||
# 下载依赖
|
||||
RUN go mod download
|
||||
|
||||
|
Reference in New Issue
Block a user