mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-27 05:15:51 +00:00
fix(docker): strip Windows CRLF from entrypoint.sh
This commit is contained in:
parent
5ee96721f7
commit
67e6f8cc7a
2
.gitattributes
vendored
Normal file
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Ensure shell scripts always use LF line endings (Docker/Linux compat)
|
||||||
|
*.sh text eol=lf
|
||||||
@ -38,7 +38,7 @@ RUN useradd -m -u 1000 -s /bin/bash nanobot && \
|
|||||||
chown -R nanobot:nanobot /home/nanobot /app
|
chown -R nanobot:nanobot /home/nanobot /app
|
||||||
|
|
||||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
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
|
USER nanobot
|
||||||
ENV HOME=/home/nanobot
|
ENV HOME=/home/nanobot
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user