Merge branch 'gin' into 'master'
mode See merge request root/esg_report_backend!15
This commit is contained in:
commit
d35eeebda1
|
@ -1,10 +1,10 @@
|
|||
FROM golang:latest
|
||||
ENV GOPROXY https://goproxy.cn,direct
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN go env -w GO111MODULE=on
|
||||
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
||||
ADD main.go /app
|
||||
RUN go env -w $GO111MODULE=on
|
||||
RUN go env -w $GOPROXY=https://goproxy.cn,direct
|
||||
RUN go mod tidy
|
||||
RUN go build .
|
||||
EXPOSE 9090
|
||||
ENTRYPOINT ["./main"]
|
||||
ENTRYPOINT ["go run ./main.go"]
|
Loading…
Reference in New Issue