From 3c75a6c22d0ddb8c3751fd94b152eb752d7cae2a Mon Sep 17 00:00:00 2001 From: Cairry Date: Tue, 7 Jan 2025 10:35:37 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20Remove=20upx=20command?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7c4d535..2a42c80 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories ca-certificates upx RUN CGO_ENABLED=0 GOOS=linux GOARCH=$TARGETARCH go build --ldflags="-X main.Version=${VERSION}" -o watchAlert . \ - && upx -9 watchAlert && chmod +x watchAlert + && chmod +x watchAlert FROM alpine:3.19 @@ -22,4 +22,4 @@ COPY --from=build /root/watchAlert /app/watchAlert WORKDIR /app -ENTRYPOINT ["/app/watchAlert"] \ No newline at end of file +ENTRYPOINT ["/app/watchAlert"]