|
FROM golang:latest
|
|
ENV GOPROXY https://goproxy.cn,direct
|
|
WORKDIR /esg_report_backend
|
|
COPY . .
|
|
RUN go env -w GO111MODULE=on
|
|
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
|
RUN go mod tidy
|
|
RUN go build -o app .
|
|
WORKDIR /dist
|
|
EXPOSE 9090
|
|
CMD ["./esg_report_backend"] |