Delete intermediate images when building docker image.