Skip to content

Commit 4f405ba

Browse files
authored
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.
1 parent a3396b6 commit 4f405ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.gitattibutes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Force LF line endings, needed for Docker to work on Windows
2+
*.sh text eol=lf

0 commit comments

Comments
 (0)