From 2e423e5adcb44f57e35b419ced1b29d50c82eaba Mon Sep 17 00:00:00 2001 From: dert1129 Date: Fri, 2 Aug 2024 13:22:06 -0400 Subject: [PATCH] add gunicorn --- Dockerfile | 2 +- requirements.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f0c7f55..d3b7c18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,4 +7,4 @@ COPY app.py app.py COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt RUN pip3 install -U flask-cors -CMD ["flask", "run"] \ No newline at end of file +CMD ["gunicorn", "-b", ":5000", "app:app"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index c4796ff..1ed6d31 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,5 @@ minio boto3 flask-cors mysql-connector-python -requests \ No newline at end of file +requests +gunicorn \ No newline at end of file