Add UPX file compression

This commit is contained in:
An0nX
2026-03-11 13:20:08 +03:00
committed by GitHub
parent c2f253a7de
commit b3fee66b3b

View File

@@ -18,6 +18,7 @@ RUN --mount=type=cache,target=/var/cache/apk \
build-base musl-dev pkgconf \
openssl-dev openssl-libs-static \
zlib-dev zlib-static \
upx \
&& update-ca-certificates
RUN set -eux; \
@@ -65,6 +66,12 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
exit 1; \
fi
RUN set -eux; \
echo "=== Before UPX ===" && ls -lh /out/telemt; \
upx --ultra-brute --preserve-build-id /out/telemt; \
echo "=== After UPX ===" && ls -lh /out/telemt; \
echo "=== Integrity check ===" && upx -t /out/telemt
FROM gcr.io/distroless/static:nonroot AS runtime
STOPSIGNAL SIGINT