One possible reference: https://blog.replicated.com/2016/02/05/refactoring-a-dockerfile-for-image-size/ This also applies to all the BenchFlow components