From 0d57e2950b3e9ff77b4a815561255cb44a6e3769 Mon Sep 17 00:00:00 2001 From: timerzz Date: Mon, 13 May 2024 20:23:24 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E4=BF=AE=E6=94=B9=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84golang=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e09f25d..a107a32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM golang:alpine as back +FROM golang as back ARG GOPROXY=https://goproxy.cn,direct WORKDIR /build COPY . /build @@ -9,9 +9,6 @@ ARG GONOSUMDB=gitea.timerzz.com RUN go build -trimpath -ldflags '-w -s' -o watcher ./main FROM alpine:latest -ARG HTTP_PROXY=http://192.168.31.55:10809 -ARG HTTPS_PROXY=http://192.168.31.55:10809 -RUN apk add --no-cache ca-certificates tzdata WORKDIR /work COPY --from=back /build/watcher /work/ ENTRYPOINT ["/work/watcher"]