lukechilds / docker-bitcoind

Run a full Bitcoin node with one command
MIT License
7 stars 1 forks source link

Create scratch variant with docker-slim #5

Open lukechilds opened 4 years ago

lukechilds commented 4 years ago

https://github.com/docker-slim/docker-slim

Quick tests show this does the trick:

docker-slim build --continue-after 1 lukechilds/bitcoind

Reduces image from 100MB to 15MB.

REPOSITORY                            TAG                 IMAGE ID            CREATED             SIZE
lukechilds/bitcoind                   latest              abc0893e81ad        5 days ago          101MB
lukechilds/bitcoind.slim              latest              f8eccb4eb4ed        6 minutes ago       15.5MB

Use tag *-scratch to differentiate and document that these builds are experimental.

e.g: