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