From e5cfe91c44e911ea9ea08d3fd6ec87846a107f6b Mon Sep 17 00:00:00 2001 From: nachuan Date: Fri, 17 May 2024 13:41:34 +0800 Subject: [PATCH] =?UTF-8?q?dockerfile=E6=B7=BB=E5=8A=A0go=E4=BB=A3?= =?UTF-8?q?=E7=90=86,=E8=A7=A3=E5=86=B3=E6=8B=89=E5=8F=96=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=8C=85=E7=9A=84=E5=BB=B6=E8=BF=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index c92048b..61b1588 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ WORKDIR /app ADD . . +ENV GOPROXY https://goproxy.cn + RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o override FROM alpine:latest