镜像源

This commit is contained in:
dong 2024-12-27 19:59:41 +08:00
parent 0a9d766bc4
commit e35768d932

View File

@ -6,7 +6,8 @@ WORKDIR /app
# 复制源代码 # 复制源代码
COPY . . 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 RUN go mod download