From f0e46a4116dd96492af4717016654b603b6fb807 Mon Sep 17 00:00:00 2001 From: timerzz Date: Mon, 13 May 2024 20:27:39 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=B7=BB=E5=8A=A0GONOPROXY?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a107a32..8a6799b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ FROM golang as back -ARG GOPROXY=https://goproxy.cn,direct WORKDIR /build COPY . /build ARG CGO_ENABLED=0 +ARG GOPROXY=https://goproxy.cn,direct ARG GOPRIVATE=gitea.timerzz.com ARG GONOSUMDB=gitea.timerzz.com +ARG GONOPROXY=gitea.timerzz.com RUN go build -trimpath -ldflags '-w -s' -o watcher ./main FROM alpine:latest