Harden frontend entrypoint script for Windows/Linux line endings
All checks were successful
CI Build / Build Container (push) Successful in 6s
CI Quality / Ruff Lint (push) Successful in 6s
CI Security / Bandit + pip-audit (push) Successful in 27s
CI Tests / Django Tests (push) Successful in 35s
CI Tests / OpenAPI Schema (push) Successful in 11s

This commit is contained in:
Paperclip CTO
2026-05-19 22:52:25 +02:00
parent 1bb4f4c3e3
commit aabb58e042
2 changed files with 3 additions and 1 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
*.sh text eol=lf

View File

@@ -4,4 +4,5 @@ COPY frontend/nginx.frontend.conf /etc/nginx/conf.d/default.conf
COPY frontend/public/ /usr/share/nginx/html/
COPY frontend/public/config.template.js /usr/share/nginx/html/config.template.js
COPY frontend/docker-entrypoint/40-generate-config.sh /docker-entrypoint.d/40-generate-config.sh
RUN chmod +x /docker-entrypoint.d/40-generate-config.sh
RUN sed -i 's/\r$//' /docker-entrypoint.d/40-generate-config.sh \
&& chmod +x /docker-entrypoint.d/40-generate-config.sh