From 4f405ba9c40526b5fe36e165a0a42da077d0249e Mon Sep 17 00:00:00 2001 From: Manuel Date: Thu, 2 Jan 2025 20:00:47 +0100 Subject: [PATCH] Fix Line Ending Issues for Shell Scripts in Docker for Windows 10 (#2932) Shell scripts like entry_point.sh caused errors in Docker due to CRLF line endings on Windows (`exec /tmp/entry_point.sh: no such file or directory`). Added `.gitattributes` to enforce LF line endings for *.sh files. This resolves the issue and ensures consistent behavior across platforms. --- .gitattibutes | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .gitattibutes diff --git a/.gitattibutes b/.gitattibutes new file mode 100644 index 000000000000..e78589838cd8 --- /dev/null +++ b/.gitattibutes @@ -0,0 +1,2 @@ +# Force LF line endings, needed for Docker to work on Windows +*.sh text eol=lf \ No newline at end of file