Fix CRLF line endings on entrypoint script causing sh\r runtime crash on Alpine

This commit is contained in:
Kroonk
2026-04-12 16:24:02 +02:00
parent 21ae8c1599
commit 567cb67763

View File

@@ -25,6 +25,9 @@ RUN npm install --omit=dev
COPY backend ./backend COPY backend ./backend
COPY --from=builder /site/_site ./public COPY --from=builder /site/_site ./public
COPY entrypoint.sh /entrypoint.sh COPY entrypoint.sh /entrypoint.sh
# Behebt Windows CRLF Zeilenumbrueche, ansonsten stuerzt Alpine mit "sh\r: not found" ab!
RUN sed -i 's/\r$//' /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
# Verzeichnisse anlegen # Verzeichnisse anlegen