Split up Dockerfiles to separate base and build ones.