I know this is not the solution you are looking for, but here's what I do, when I want a small image after a complex dockerfile and I don't care to distribute it as layers:
This has the disadvantage that your new flat image doesn't have any CMD directive. You can add it with another dockerfile, starting with FROM flat-image, and skipping straight to CMD ["/bin/bash", "/bootstrap.sh"]
1 comment
[ 2.5 ms ] story [ 11.1 ms ] thread