Merge branch 'gin' into 'master'

mode

See merge request root/esg_report_backend!14
This commit is contained in:
徐聿成 2021-11-25 06:30:45 +00:00
commit ec4a1e4d3b
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
FROM golang:latest FROM golang:latest
ENV GOPROXY https://goproxy.cn,direct ENV GOPROXY https://goproxy.cn,direct
WORKDIR /home/gin WORKDIR /app
COPY . . COPY . .
RUN go env -w GO111MODULE=on RUN go env -w GO111MODULE=on
RUN go env -w GOPROXY=https://goproxy.cn,direct RUN go env -w GOPROXY=https://goproxy.cn,direct
RUN go mod tidy RUN go mod tidy
RUN go build -o app . RUN go build .
EXPOSE 9090 EXPOSE 9090
CMD ["/home/gin/dist/app"] ENTRYPOINT ["./main"]