mode
This commit is contained in:
parent
ab3defe93e
commit
2e0223793a
|
@ -1,10 +1,10 @@
|
|||
FROM golang:latest
|
||||
ENV GOPROXY https://goproxy.cn,direct
|
||||
WORKDIR /app
|
||||
ADD ./* /app/
|
||||
COPY . .
|
||||
RUN go env -w GO111MODULE=on
|
||||
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
||||
RUN go mod tidy
|
||||
RUN go build /app
|
||||
RUN go build -o mains .
|
||||
EXPOSE 9090
|
||||
ENTRYPOINT ["go run ./main.go"]
|
||||
ENTRYPOINT ["./mains"]
|
Loading…
Reference in New Issue