The bitcoin-abc-dev image is built by copying the repo and running the dependencies installation script. That script is run from the tree root, which causes 2 issues:
- There might be download leftovers (actually there are), that are taking space for no reason
- There might be conflict with some of the project config files, actually there is one with the Cargo.toml file during installation of corrosion.
Boths issues can be fixed by running the script in a dedicated temporary directory which is removed after the script completed.