This pull request is one possible solution to issue #18110.
After a long time waiting for a official image from bitcoin/bitcoin on hub.docker.com, which both can be small and affordable to small clouds and be deployed to thousands of nodes on container providers at the same time maintaining a clean and non obstructive code, and maintained by the most used code for bitcoin.
It was a hard work of 3 days compiling and recompiling until I found a way to compile the binary inside a alpine:latest container, and his different libc, musl and linking the binary as static, avoiding any possible dependencies opening door to use even smaller images.
The current image has 34Mb but still have enough doors for improvement. It runs a full node very easily as > docker run tegila/bitcoin-static-alpine I hope it can be done soon using > docker run bitcoin:latest And many cloud providers had the same feeling.
milestone/52 by @laanwj also add issue #18110
I'm using the building system provided by hub.docker.com which also open doors to tests and other CI's but for now only a full node image was my target as I have servers to deploy.
Hope you guys like it as I did, and hope we can raise more full nodes making easy to cloud providers deploy bitcoin.
I'll left it here:
docker run tegila/bitcoin-static-alpine