From ad0c436935af704234cc6c8e558a1a8e1f8cce2c Mon Sep 17 00:00:00 2001 From: machooo Date: Fri, 17 May 2024 15:28:39 +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?= =?UTF-8?q?=20(#14)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: nachuan --- 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