Externalised compilation outside the image building to speed up downloads by caching