Is there a way to use the docker-compose build, with git repo as context specifying a single branch that is not master?
Not checked the code, but assuming compose just passes the build context straight through to the daemon, in which case yes, different branches / commits (whole range of options) are supported.
See here: https://docs.docker.com/engine/reference/commandline/build/
Most helpful comment
Not checked the code, but assuming compose just passes the build context straight through to the daemon, in which case yes, different branches / commits (whole range of options) are supported.
See here: https://docs.docker.com/engine/reference/commandline/build/