Let’s say we’ve got 100s of microservices (.NET in this case) that we’re wanting to build docker images for. Would you prefer:
A Dockerfile alongside each microservice’s source code specific to that code
A single Dockerfile with build arguments that allow you to specify the the project to be built to avoid 100s of Dockerfiles which are similar
In this case, the microservices are generated from a template, so their code/directory structure is identical.