From 27cbbaadeff30029298ee177f76b5823cca2c4a7 Mon Sep 17 00:00:00 2001 From: R0GGER Date: Fri, 28 Nov 2025 20:52:55 +0100 Subject: [PATCH] Use gunicorn use gunicorn, which is a production-ready WSGI server --- Dockerfile | 2 +- requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1172f67..ef688ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,5 +13,5 @@ EXPOSE 5000 ENV PYTHONUNBUFFERED=1 -CMD ["python", "app.py"] +CMD ["gunicorn", "--bind", "0.0.0.0:5000", "-w", "1", "app:app"] diff --git a/requirements.txt b/requirements.txt index abcc404..d560a02 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ flask requests geopy geonamescache +gunicorn