colthreepv / docker-image_optim

Docker image giving the built version of the best image optimizing CLI apps together with image_optim to rule them all
The Unlicense
10 stars 4 forks source link

minimize footprint #1

Open colthreepv opened 8 years ago

colthreepv commented 8 years ago

There's a huge gap between this image and original one (330mb vs 60mb), so the main Dockerfile could be the "minimized" one, leaving the debug version in the repository for manual builds

colthreepv commented 6 years ago

Progress has been made in this direction, an even better approach would be leveraging multi-stage production builds as explained in this article

It should be possible to build an image with all the build tools, then create an alpine image, and just copy the built dependencies into it.

At the moment it's too much effort for me, but it's still something I would like to see done