This commit is contained in:
parent
8934e23bd8
commit
0bf6080f25
@ -7,10 +7,10 @@ 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
|
ARG GONOPROXY=gitea.timerzz.com
|
||||||
RUN go build -trimpath -ldflags '-w -s' -o product ./cmd
|
RUN go build -o run -trimpath -ldflags '-w -s' ./cmd
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
WORKDIR /work
|
WORKDIR /work
|
||||||
COPY --from=back /build/product /work/
|
COPY --from=back /build/run /work/
|
||||||
ENTRYPOINT ["/work/product"]
|
ENTRYPOINT ["/work/run"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user