We are a few developers currently developing a C++ app.
In order to be sure that everyone use the same libraries and dependencies than the remote production server, we are using docker to compile the code source in our localhost.
My question is what the best practices to use git with docker?
- Add the Dockerfile to the source code repository
- Create a dedicated repository for all our Dockerfiles
- Created a dedicated repository for each Dockerfile