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"]