mode
This commit is contained in:
parent
d35eeebda1
commit
b90ad9630a
|
@ -1,9 +1,9 @@
|
||||||
FROM golang:latest
|
FROM golang:latest
|
||||||
ENV GOPROXY https://goproxy.cn,direct
|
ENV GOPROXY https://goproxy.cn,direct
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD main.go /app
|
ADD ./* /app
|
||||||
RUN go env -w $GO111MODULE=on
|
RUN go env -w GO111MODULE=on
|
||||||
RUN go env -w $GOPROXY=https://goproxy.cn,direct
|
RUN go env -w GOPROXY=https://goproxy.cn,direct
|
||||||
RUN go mod tidy
|
RUN go mod tidy
|
||||||
RUN go build .
|
RUN go build .
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
|
|
Loading…
Reference in New Issue