dockerfile添加go代理,解决拉取三方包的延迟问题 (#14)

Co-authored-by: nachuan <nachuan@lccomputing.com>
This commit is contained in:
machooo 2024-05-17 15:28:39 +08:00 committed by GitHub
parent 38faf0bb1b
commit ad0c436935
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

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