From 0bf6080f25ef96b319e32ca4a2c33daf12178f19 Mon Sep 17 00:00:00 2001 From: timerzz Date: Tue, 14 May 2024 16:44:43 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9e6e9cc..e25cc45 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]