I’m running in to an issue where I’m not able to run containers for multiple dockerfiles in the same project. Major points:
I’d like to use more than one Dockerfile to create multiple types of containers.
This is a golang project in which several independent apps or processes are held in the same repository.
I can only have one Dockerfile in the root of my application if I’m to use that as the build context.
If I try to put Dockerfiles in subfolders, I can’t build because there’s no .git folder.
Trying to determine the best approach. If I break this project up in to multiple repositories, there are going to be a lot of really tiny repos and there’s some common code shared amongst them.
Ideally if I could have multiple Dockerfiles in my root folder with different names that would also break the logjam.