mode
This commit is contained in:
parent
62cfbd6f31
commit
8bbbee86f6
|
@ -1,10 +1,10 @@
|
|||
FROM golang:latest
|
||||
ENV GOPROXY https://goproxy.cn,direct
|
||||
WORKDIR /home/gin
|
||||
WORKDIR /app
|
||||
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 .
|
||||
RUN go build .
|
||||
EXPOSE 9090
|
||||
CMD ["/home/gin/dist/app"]
|
||||
ENTRYPOINT ["./main"]
|
Loading…
Reference in New Issue