diff --git a/Dockerfile b/Dockerfile index 090e552..3f01a5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,8 @@ FROM golang:latest ENV GOPROXY https://goproxy.cn,direct WORKDIR /home/esg_report_backend COPY . . +RUN go env -w GO111MODULE=on +RUN go env -w GOPROXY=https://goproxy.cn,direct RUN go build -o app . WORKDIR /dist RUN cp /home/esg_report_backend