Merge branch 'gin' into 'master'
mode See merge request root/esg_report_backend!6
This commit is contained in:
commit
4999a12c0e
|
@ -1,12 +1,12 @@
|
||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
ENV GOPROXY https://goproxy.cn,direct
|
ENV GOPROXY https://goproxy.cn,direct
|
||||||
WORKDIR /home/esg_report_backend
|
WORKDIR /esg_report_backend
|
||||||
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 -o app .
|
||||||
WORKDIR /dist
|
WORKDIR /dist
|
||||||
RUN cp /home/esg_report_backend
|
RUN cp /esg_report_backend
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
ENTRYPOINT ["/dist/app"]
|
ENTRYPOINT ["/dist/app"]
|
Loading…
Reference in New Issue