dockerfile添加go代理,解决拉取三方包的延迟问题 (#14)
Co-authored-by: nachuan <nachuan@lccomputing.com>
This commit is contained in:
parent
38faf0bb1b
commit
ad0c436935
|
|
@ -4,6 +4,8 @@ WORKDIR /app
|
||||||
|
|
||||||
ADD . .
|
ADD . .
|
||||||
|
|
||||||
|
ENV GOPROXY https://goproxy.cn
|
||||||
|
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o override
|
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o override
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue