UPX binary available at /bin/upx
223
Use it to compress binaries easily.
docker run --rm -w $PWD -v $PWD:$PWD volf52/upx-minimal:1.0 --best --lzma -o app.out ./app
Or in a docker image (multistage build)
# ... other build steps
FROM volf52/upx-minimal:1.0 as upx-src
FROM alpine:latest as compresser
COPY --from=upx-src /bin/upx .
COPY --from=build-step /app .
RUN ./upx --best --lzma -o app.out app
# Use the binary in other stages
FROM base as prod
COPY --from=compresser /app.out ./app
Content type
Image
Digest
sha256:937dc3af1…
Size
514.1 kB
Last updated
almost 4 years ago
docker pull volf52/upx-minimal