diff --git a/Dockerfile.api b/Dockerfile.api index e2c5454..dd298f0 100644 --- a/Dockerfile.api +++ b/Dockerfile.api @@ -14,6 +14,7 @@ COPY go.mod go.sum ./ # 使用国内 Go 代理加速依赖下载 ENV GOPROXY=https://goproxy.cn,direct +ENV GOTOOLCHAIN=auto RUN go mod download diff --git a/Dockerfile.worker b/Dockerfile.worker index 8cc411f..e1e4712 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -14,6 +14,7 @@ COPY go.mod go.sum ./ # 使用国内 Go 代理加速依赖下载 ENV GOPROXY=https://goproxy.cn,direct +ENV GOTOOLCHAIN=auto RUN go mod download