Each RUN command creates an overlay layer. This results in keeeping all intermediate files. By consolidating all work in a single script, the size of base-clang image is decreased from 3G to 1G.