Docker builds fail on Windows environments with errors like /bin/sh: ./build.sh: not found, even though the file exists. This happens because Git converts line endings to CRLF (\r\n), which breaks execution of shell scripts (*.sh), Dockerfile, and Makefile inside Linux-based containers that expect LF (\n).
Docker builds fail on Windows environments with errors like
/bin/sh: ./build.sh: not found, even though the file exists. This happens because Git converts line endings to CRLF (\r\n), which breaks execution of shell scripts (*.sh),Dockerfile, andMakefileinside Linux-based containers that expect LF (\n).