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 101cc7b..ac9bf29 100644 Binary files a/__pycache__/app.cpython-314.pyc and b/__pycache__/app.cpython-314.pyc differ 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