switch webserver to gunicorn

This commit is contained in:
nocci 2025-04-29 14:27:55 +02:00
parent 653d04e76a
commit 277bd5a283
1 changed files with 2 additions and 3 deletions

View File

@ -108,6 +108,7 @@ matrix-client
reportlab
requests
pillow
gunicorn
EOL
# 3. .env-Datei im übergeordneten Verzeichnis erstellen
@ -878,9 +879,7 @@ RUN groupadd -g \$GID appuser && \
chown -R appuser:appuser /app
USER appuser
EXPOSE 5000
CMD ["python", "app.py"]
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
DOCKER_END
# 6. docker-compose.yml