From b87a07dae025d94c88c143be93014b325739f56b Mon Sep 17 00:00:00 2001 From: Michael DeMarco Date: Fri, 29 Dec 2023 18:24:00 -0700 Subject: [PATCH] feat: add production-ready server --- Dockerfile | 2 +- requirements/prod.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 87e7343..905339c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,4 +11,4 @@ ENV FLASK_APP=bereal.server EXPOSE 5000 -CMD ["python", "-m", "bereal.server"] +CMD ["gunicorn", "-w", "4", "bereal.server:app"] diff --git a/requirements/prod.txt b/requirements/prod.txt index 6624a30..a84db52 100644 --- a/requirements/prod.txt +++ b/requirements/prod.txt @@ -1 +1,2 @@ +gunicorn -r common.txt