Skip to content

Conversation

@PedramNavid
Copy link
Collaborator

Summary

  • Adds .gitattributes file to enforce LF line endings for shell scripts and Dockerfiles
  • Prevents Git on Windows from converting line endings to CRLF

Problem

Windows users cloning the repository with default Git settings get CRLF line endings, which breaks the shebang in entrypoint.sh:

#!/bin/bash\r  <-- the \r breaks it

This causes the error:

exec ./entrypoint.sh: no such file or directory

Solution

Add .gitattributes to force LF line endings for:

  • *.sh files
  • Dockerfile
  • entrypoint.sh

This ensures shell scripts work correctly regardless of the user's Git configuration or operating system.

Test plan

  • Clone on Windows with default Git settings
  • Verify entrypoint.sh has LF line endings
  • Docker build and run succeeds

Fixes #196

🤖 Generated with Claude Code

Add .gitattributes file to enforce LF line endings for shell scripts
and Dockerfiles. This prevents Git on Windows from converting line
endings to CRLF, which breaks the shebang in entrypoint.sh and causes
"exec ./entrypoint.sh: no such file or directory" errors.

Fixes #196

🤖 Generated with [Claude Code](https://claude.ai/claude-code)

Co-Authored-By: Claude <[email protected]>
@PedramNavid PedramNavid enabled auto-merge (squash) December 5, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows] Docker entrypoint.sh fails due to CRLF line endings

3 participants