This commit is contained in:
xuyucheng 2021-11-25 14:47:35 +08:00
parent d35eeebda1
commit b90ad9630a
1 changed files with 3 additions and 3 deletions

View File

@ -1,9 +1,9 @@
FROM golang:latest
ENV GOPROXY https://goproxy.cn,direct
WORKDIR /app
ADD main.go /app
RUN go env -w $GO111MODULE=on
RUN go env -w $GOPROXY=https://goproxy.cn,direct
ADD ./* /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