修改Dockerfile添加go代理配置

This commit is contained in:
walker 2023-08-07 16:51:20 +08:00
parent ed94788770
commit c057091e1c

View File

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