Giter VIP home page Giter VIP logo

docker-upx's Introduction

Go small or go home

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

Usage

You can compress your binary file as:

$ docker run -v $PWD:/data lalyos/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.91        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.

docker-upx's People

Contributors

lalyos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.