This commit is contained in:
xuyucheng 2021-11-25 15:05:58 +08:00
parent ab3defe93e
commit 2e0223793a
1 changed files with 3 additions and 3 deletions

View File

@ -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"]