Merge branch 'gin' into 'master'
mode See merge request root/esg_report_backend!11
This commit is contained in:
commit
e30f29b2e7
|
@ -1,6 +1,6 @@
|
||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
ENV GOPROXY https://goproxy.cn,direct
|
ENV GOPROXY https://goproxy.cn,direct
|
||||||
WORKDIR /esg_report_backend
|
WORKDIR /home/gin
|
||||||
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
|
||||||
|
@ -8,4 +8,4 @@ RUN go mod tidy
|
||||||
RUN go build -o app .
|
RUN go build -o app .
|
||||||
WORKDIR /dist
|
WORKDIR /dist
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
CMD ["./webserver"]
|
CMD ["/dist/app"]
|
Loading…
Reference in New Issue