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 GONOSUMDB=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
|
||||
WORKDIR /work
|
||||
COPY --from=back /build/product /work/
|
||||
ENTRYPOINT ["/work/product"]
|
||||
COPY --from=back /build/run /work/
|
||||
ENTRYPOINT ["/work/run"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user