Let's say that I have a Django project and want to create several Dockerfiles which would use different sets of settings and system packages (not to be confused with Python libraries). For the application to run, I have to copy the full project codebase to the image.
Now I've seen Setting up a docker / fig Mesos environment which inspired me to put each separate Dockerfile into its own directory in the project root.
docker build env1/
predictably creates a tarball of env1
and uses it to build the image.
Is there any way I can redefine Dockerfile name or builds context root?