Sign inSign up

phaus/upx

By phaus

•Updated almost 6 years ago

Image
0

280

phaus/upx repository overview

⁠Go small or go home

Lets save the interweb, and make all binaries small. This tiny (1.1MB) Docker image is a containerized upx⁠.

Forked from lalyos/docker-upx.

⁠Usage

You can compress your binary file as:

$ docker run -v $PWD:/data phaus/upx mybinary

⁠Go for even smaller

I was playing with the docker binary itself, and got it compressed under 1.5MB. Shouldn’t it be the official release ;)

You can use all the available upx options, so if ypo have some time, and want to create the smallest size, use --best --ultra-brute options:

$ docker run --rm -v $PWD:/data  lalyos/upx -k --best --ultra-brute docker

                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2013
UPX 3.96        Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 30th 2013

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
   7474608 ->   1454080   19.45%   Mach/AMD64    docker

Packed 1 file.

The -k options is for keeping a backup from the original binary.

⁠tl;dr

  • It is statically built with Alpine linux
  • compressed by itdelf (eat your own dogfood)
  • added into a custom scratch⁠

⁠TODO

If I’m getting too bored (unlikely in the coming weeks) i might create an ordinary Alpine package for upx.

Tag summary

Content type

Image

Digest

Size

867.6 kB

Last updated

almost 6 years ago

docker pull phaus/upx