mirror of
https://github.com/sky22333/qqbot.git
synced 2026-05-11 10:00:29 +08:00
rm upx
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user