From d32436db4c1360148a84d9b79bb87f97e82e16a4 Mon Sep 17 00:00:00 2001 From: MeeJay Date: Fri, 14 Aug 2026 10:49:21 +0200 Subject: [PATCH] Add .gitattributes: force LF to keep Docker builds working Git converts to CRLF on checkout under Windows; a CRLF entrypoint or config file copied into a Linux image fails with "bad interpreter". Co-Authored-By: Claude Opus 5 (1M context) --- .gitattributes | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..085e897 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,19 @@ +# Keep LF in the repository AND in working copies, on every platform. +# The Docker images are built from these files on Linux: a CRLF entrypoint, +# shell script or config silently breaks the build ("bad interpreter"). +* text=auto eol=lf + +# Binary assets: never touch. +*.png binary +*.jpg binary +*.jpeg binary +*.gif binary +*.ico binary +*.woff binary +*.woff2 binary +*.pdf binary + +# Windows-only helpers legitimately keep CRLF. +*.bat text eol=crlf +*.cmd text eol=crlf +*.ps1 text eol=crlf