fix(docker): strip Windows CRLF from entrypoint.sh

This commit is contained in:
flobo3 2026-04-07 07:37:01 +03:00 committed by Xubin Ren
parent 5ee96721f7
commit 67e6f8cc7a
2 changed files with 3 additions and 1 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# Ensure shell scripts always use LF line endings (Docker/Linux compat)
*.sh text eol=lf

View File

@ -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