modified: Dockerfile

This commit is contained in:
SimolZimol
2026-08-07 21:07:22 +02:00
parent fc36d5e386
commit afa6359bf5

View File

@@ -31,4 +31,7 @@ USER appuser
EXPOSE 8000 EXPOSE 8000
# Startbefehl (Production: Gunicorn) # Startbefehl (Production: Gunicorn)
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--timeout", "120", "wsgi:app"] # --preload: Die App (inkl. db.create_all() + Seed) wird einmal im Master geladen,
# bevor die Worker geforkt werden. Das verhindert den Startup-Race, bei dem mehrere
# Worker gleichzeitig dieselben Tabellen erstellen.
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--timeout", "120", "--preload", "wsgi:app"]