From d1b8f8a082737722d50a5317f603eb58bf6bf775 Mon Sep 17 00:00:00 2001 From: sansan <77180927+sansan0@users.noreply.github.com> Date: Tue, 22 Jul 2025 19:52:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=BA=E5=88=B6=20entrypoint.sh=20?= =?UTF-8?q?=E4=B8=BA=20LF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 55591f8..3159fbf 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -23,9 +23,12 @@ RUN pip install --no-cache-dir -r requirements.txt COPY main.py . COPY docker/manage.py . -COPY docker/entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh && \ +# 复制 entrypoint.sh 并强制转换为 LF 格式 +COPY docker/entrypoint.sh /entrypoint.sh.tmp +RUN sed -i 's/\r$//' /entrypoint.sh.tmp && \ + mv /entrypoint.sh.tmp /entrypoint.sh && \ + chmod +x /entrypoint.sh && \ chmod +x manage.py && \ mkdir -p /app/config /app/output