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