diff --git a/backend/Dockerfile b/backend/Dockerfile index 6379f3d..7a5ddb8 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app # Download Go modules COPY go.mod go.sum ./ -RUN go mod download +RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go mod download # Copy the source code. Note the slash at the end, as explained in # https://docs.docker.com/engine/reference/builder/#copy diff --git a/worker/Dockerfile b/worker/Dockerfile index 1abd5d8..637f7a3 100644 --- a/worker/Dockerfile +++ b/worker/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app # Download Go modules COPY go.mod go.sum ./ -RUN go mod download +RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go mod download # Copy the source code. Note the slash at the end, as explained in # https://docs.docker.com/engine/reference/builder/#copy