mirror of
https://github.com/sky22333/qqbot.git
synced 2026-09-07 00:16:47 +08:00
rm upx
This commit is contained in:
+2
-2
@@ -4,11 +4,11 @@ ARG TARGETARCH
|
|||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY go.mod go.sum .
|
COPY go.mod go.sum .
|
||||||
RUN go mod download && apk add upx --no-cache
|
RUN go mod download
|
||||||
|
|
||||||
COPY . .
|
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
|
FROM alpine
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user