Docker images are mostly HUGE, and I'm dreaming of a tiny, really tiny image of nginx.
The idea is to compile it and create a Docker image with only the nginx
binary, config files, the required shared libraries, etc.
So the question is: how to figure out which shared libraries a compiled application will need?
Knowing the list, I would try make a folder with all the dependencies bundled, and ship it as the smallest Docker container.
It's not only about nginx, but rather a generic recipe on how to handle these cases. Maybe, some cross-compilation tecnhiques can help here?