From c14219824161b85b7711e742f3972f00bdfbe632 Mon Sep 17 00:00:00 2001 From: SimolZimol <70102430+SimolZimol@users.noreply.github.com> Date: Fri, 7 Aug 2026 21:04:02 +0200 Subject: [PATCH] modified: Dockerfile new file: wsgi.py --- Dockerfile | 2 +- wsgi.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 wsgi.py 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)