[PR #5793] Ensure *.sh are LF-style, so that they can be used directly by Docker for Windows #25059

Closed
opened 2026-02-21 20:24:12 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/5793

State: closed
Merged: Yes


Before this fix, after running docker compose up on Docker Desktop 4.31 for Windows, the nginx-1 container fails to execute nginx/docker-entrypoint.sh. It repeatly spout error message:

sh: 1: /docker-entrypoint.sh: not found
sh: 1: /docker-entrypoint.sh: not found
sh: 1: /docker-entrypoint.sh: not found

image

That's due to docker-entrypoint.sh is having CRLF as line separator.

So, using a .gitattributes file at repo root dir solves the problem once and for all.

*.sh      text eol=lf
**Original Pull Request:** https://github.com/langgenius/dify/pull/5793 **State:** closed **Merged:** Yes --- Before this fix, after running `docker compose up` on Docker Desktop 4.31 for Windows, the nginx-1 container fails to execute `nginx/docker-entrypoint.sh`. It repeatly spout error message: ``` sh: 1: /docker-entrypoint.sh: not found sh: 1: /docker-entrypoint.sh: not found sh: 1: /docker-entrypoint.sh: not found ``` ![image](https://github.com/langgenius/dify/assets/38829153/e73fb844-e904-4697-ada0-d599733182a4) That's due to docker-entrypoint.sh is having CRLF as line separator. So, using a `.gitattributes` file at repo root dir solves the problem once and for all. ``` *.sh text eol=lf ```
yindo added the pull-request label 2026-02-21 20:24:12 -05:00
yindo closed this issue 2026-02-21 20:24:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#25059