From 905187c0d3e05109470803e3a572029c206e95b0 Mon Sep 17 00:00:00 2001 From: starry <115192496+sky22333@users.noreply.github.com> Date: Tue, 17 Mar 2026 21:50:59 +0800 Subject: [PATCH] rm upx --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e95a2b4..25658cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,11 +4,11 @@ ARG TARGETARCH WORKDIR /app COPY go.mod go.sum . -RUN go mod download && apk add upx --no-cache +RUN go mod download COPY . . -RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -ldflags="-s -w" -trimpath -o qqbot . && upx -9 qqbot +RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -ldflags="-s -w" -trimpath -o qqbot . FROM alpine