From 67e6f8cc7a68806a394933714c50edf99e9961ff Mon Sep 17 00:00:00 2001 From: flobo3 Date: Tue, 7 Apr 2026 07:37:01 +0300 Subject: [PATCH] fix(docker): strip Windows CRLF from entrypoint.sh --- .gitattributes | 2 ++ Dockerfile | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 000000000..9da244d8c --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Ensure shell scripts always use LF line endings (Docker/Linux compat) +*.sh text eol=lf diff --git a/Dockerfile b/Dockerfile index 45fea1f6f..3b86d61b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,7 +38,7 @@ RUN useradd -m -u 1000 -s /bin/bash nanobot && \ chown -R nanobot:nanobot /home/nanobot /app COPY entrypoint.sh /usr/local/bin/entrypoint.sh -RUN chmod +x /usr/local/bin/entrypoint.sh +RUN sed -i 's/\r$//' /usr/local/bin/entrypoint.sh && chmod +x /usr/local/bin/entrypoint.sh USER nanobot ENV HOME=/home/nanobot