This commit is contained in:
parent
0d57e2950b
commit
f0e46a4116
@ -1,11 +1,12 @@
|
|||||||
|
|
||||||
FROM golang as back
|
FROM golang as back
|
||||||
ARG GOPROXY=https://goproxy.cn,direct
|
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY . /build
|
COPY . /build
|
||||||
ARG CGO_ENABLED=0
|
ARG CGO_ENABLED=0
|
||||||
|
ARG GOPROXY=https://goproxy.cn,direct
|
||||||
ARG GOPRIVATE=gitea.timerzz.com
|
ARG GOPRIVATE=gitea.timerzz.com
|
||||||
ARG GONOSUMDB=gitea.timerzz.com
|
ARG GONOSUMDB=gitea.timerzz.com
|
||||||
|
ARG GONOPROXY=gitea.timerzz.com
|
||||||
RUN go build -trimpath -ldflags '-w -s' -o watcher ./main
|
RUN go build -trimpath -ldflags '-w -s' -o watcher ./main
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user