This commit is contained in:
parent
ba47d0a32a
commit
0d57e2950b
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user