From 06caed8a7f934227c979ae7cf1af84fc8d973aa4 Mon Sep 17 00:00:00 2001 From: ribs Date: Sat, 28 Feb 2026 14:25:31 -0800 Subject: [PATCH] fix: strip CRLF from shell scripts during Docker build Safety net for Windows developers whose git config (core.autocrlf=true) converts LF to CRLF on checkout. Even with .gitattributes forcing eol=lf, some git configurations can still produce CRLF working copies. The sed pass after COPY ensures start.sh and other scripts always have Unix line endings inside the container. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 77fc60c..3776650 100644 --- a/Dockerfile +++ b/Dockerfile @@ -256,6 +256,9 @@ RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY . . +# Strip Windows CRLF from shell scripts (git autocrlf can re-introduce them) +RUN find . -name '*.sh' -exec sed -i 's/\r$//' {} + + # Create data directory for persistence RUN mkdir -p /app/data /app/data/weather_sat /app/data/radiosonde/logs