From 9b717e0f09661460b913834dcb2807d11c802d29 Mon Sep 17 00:00:00 2001 From: Tero Huttunen Date: Wed, 29 Jul 2026 19:32:59 +0300 Subject: [PATCH] Add gunicorn to get rid of warnings --- Dockerfile | 3 +-- __pycache__/app.cpython-314.pyc | Bin 11530 -> 11530 bytes requirements.txt | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 114a5c9..e3addcd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,6 @@ COPY . . RUN mkdir -p /data ENV DATABASE_PATH=/data/inventory.db -ENV FLASK_APP=app.py EXPOSE 5000 -CMD ["python", "app.py"] +CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "--access-logfile", "-", "app:app"] diff --git a/__pycache__/app.cpython-314.pyc b/__pycache__/app.cpython-314.pyc index 101cc7b6c98be45ae9683769f21a70d24512ff77..ac9bf2983fb88d170ce6be9c40b8a9ddbadbf4c8 100644 GIT binary patch delta 18 XcmeB*>Wbpj=HumJ0D{dMIT>{UD0>6F delta 18 XcmeB*>Wbpj=HumJ0D_#2oQ%2vCl~{E diff --git a/requirements.txt b/requirements.txt index aa4b129..d3e0775 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1,2 @@ Flask==3.1.1 +gunicorn==23.0.0