When try docker inside windows you can get an error about end of line.
To resolve the issue you need to add .gitattributes with this setup

# .gitattributes file
* text=auto eol=lf
After you need to "refresh" git files

git rm --cached -r .  # Remove every file from git's index.
git reset --hard      # Rewrite git's index to pick up all the new line endings