-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Docker alpine: use multi-stage concept #9269
Conversation
It looks like @fanatid hasn't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement at the following URL: https://cla.parity.io Once you've signed, please reply to this thread with Many thanks, Parity Technologies CLA Bot |
[clabot:check] |
It looks like @fanatid signed our Contributor License Agreement. 👍 Many thanks, Parity Technologies CLA Bot |
0f013f3
to
b176974
Compare
@sorpaas thanks, rebased |
Do we care about supporting lower versions of Docker? For multistage builds one needs Docker 17.05. |
Yes, multistage require Docker >= 17.05 :( |
I was kinda 50:50 with #9231 but then decided to go with supporting <17.05 I'm also not sure about different platform support. For instance, i think docker rpm package for RHEL is v1.13 I'm ready to rework #9231 to go with multistage builds if needed, but i think this is more of a question for Parity team what their plans are edit: just tested the image size i get if i'm using multistage builds from docker, or doing it with a builder pattern -> the image size is the same. |
…rp_sync_on_light_client * 'master' of https://github.com/paritytech/parity: Allow setting the panic hook with parity-clib (openethereum#9292) Prevent blockchain & miner racing when accessing pending block. (openethereum#9310) Docker alpine: use multi-stage concept (openethereum#9269) Update `log` -> 0.4, `env_logger` -> 0.5. (openethereum#9294) Update tobalaba.json (openethereum#9313) Allow tx pool to be Send (openethereum#9315) Fix codecov.io badge in README (openethereum#9327) Move ethereum-specific H256FastMap type to own crate (openethereum#9307) ethcore sync decodes rlp less often (openethereum#9264)
This brings multi-stage concept and nonroot user.
Current image size is 1.42GB, with this Pull Request 58.2MB (20MB compressed on docker hub)
Thanks to @nbaksalyar for hint about
--target
flag, @ksemaev for testing