I've experienced sometimes strange behaviour when testing a metafacture-core branch. The cause was:
a branch was correctly checkouted but it was not updated . So there was a git pull
missing.
Therefore:
Add hint to also git pull
into Dockerfile.prod.