diff --git a/Dockerfile b/Dockerfile index bac0972..4b28122 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,4 +29,4 @@ RUN useradd --create-home appuser && chown -R appuser:appuser /app USER appuser # Startbefehl (Production: Gunicorn) -CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--timeout", "120", "app:app"] +CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--timeout", "120", "wsgi:app"] diff --git a/wsgi.py b/wsgi.py new file mode 100644 index 0000000..77e8c4f --- /dev/null +++ b/wsgi.py @@ -0,0 +1,6 @@ +from app import create_app + +app = create_app() + +if __name__ == "__main__": + app.run(host="0.0.0.0", port=8000, debug=True)