@Andrew
I created a post with all the details the sample project and the config files.
https://forum.unity.com/threads/build-script-fails-only-in-batch-mode-when-running-in-a-docker-windows-container.1470294/