fix: gunicorn control socket error and host bytecode in the image

Found by running the container on Docker Desktop. Disable gunicorn's control
socket (the home directory is read-only) and ignore __pycache__ and .pyc at
any depth so host bytecode with the Windows source path stays out of the image.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Sk72AxLwQnYttF6VFSxQLt
This commit is contained in:
Ebbe Baß
2026-10-15 14:58:32 +02:00
co-authored by Claude Sonnet 5.5
parent f8b0584687
commit 840bea1cba
3 changed files with 9 additions and 4 deletions
+2 -1
View File
@@ -9,4 +9,5 @@ exec gunicorn portal.config.wsgi:application \
--threads 4 \
--preload \
--worker-tmp-dir /tmp \
--error-logfile -
--error-logfile - \
--no-control-socket