I couldn't push or pull from any repositories until I set -git-dir following the instructions in knot-hosting, so maybe this file should just created when creating the Dockerfile?
NEW
Dockerfile
NEW
Dockerfile
···
NEW
readme.md
NEW
readme.md
···