修改Dockerfile添加go代理配置
This commit is contained in:
parent
ed94788770
commit
c057091e1c
@ -1,7 +1,7 @@
|
||||
FROM golang:1.20.7 as builder
|
||||
WORKDIR /go/src/joylink.club/bj-rtsts-server
|
||||
COPY ./* ./
|
||||
RUN go build -o bj-rtsts-server
|
||||
RUN go env -w GO111MODULE=on && go env -w GOPROXY=https://goproxy.cn,direct && go build -o bj-rtsts-server
|
||||
|
||||
|
||||
FROM scratch
|
||||
|
Loading…
Reference in New Issue
Block a user