From 3c5efee252f766792f64712b3171ccdd0a75ea93 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RTLN3BA\\$punk" Date: Sun, 7 Dec 2025 02:01:09 -0800 Subject: [PATCH] fix: add dos2unix to Dockerfile to handle line endings for entrypoint script --- surfsense_backend/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/surfsense_backend/Dockerfile b/surfsense_backend/Dockerfile index 91a225754..13b5dc097 100644 --- a/surfsense_backend/Dockerfile +++ b/surfsense_backend/Dockerfile @@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libsm6 \ libxext6 \ libxrender1 \ + dos2unix \ && rm -rf /var/lib/apt/lists/* # Update certificates and install SSL tools @@ -64,8 +65,9 @@ RUN pip install playwright && \ COPY . . # Copy and set permissions for entrypoint script +# Use dos2unix to ensure LF line endings (fixes CRLF issues from Windows checkouts) COPY scripts/docker/entrypoint.sh /app/scripts/docker/entrypoint.sh -RUN chmod +x /app/scripts/docker/entrypoint.sh +RUN dos2unix /app/scripts/docker/entrypoint.sh && chmod +x /app/scripts/docker/entrypoint.sh # Prevent uvloop compatibility issues ENV PYTHONPATH=/app