mode
This commit is contained in:
parent
783d8ee403
commit
5379fe251c
|
@ -2,6 +2,8 @@ FROM golang:latest
|
||||||
ENV GOPROXY https://goproxy.cn,direct
|
ENV GOPROXY https://goproxy.cn,direct
|
||||||
WORKDIR /home/esg_report_backend
|
WORKDIR /home/esg_report_backend
|
||||||
COPY . .
|
COPY . .
|
||||||
|
RUN go env -w GO111MODULE=on
|
||||||
|
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
RUN go build -o app .
|
RUN go build -o app .
|
||||||
WORKDIR /dist
|
WORKDIR /dist
|
||||||
RUN cp /home/esg_report_backend
|
RUN cp /home/esg_report_backend
|
||||||
|
|
Loading…
Reference in New Issue