fix 修复运行错误
All checks were successful
Build image / build (push) Successful in 6m25s

This commit is contained in:
timerzz 2024-05-14 16:44:43 +08:00
parent 8934e23bd8
commit 0bf6080f25

View File

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