From c6cfbd2001242f6ae363805966aac0bc6c96b2a1 Mon Sep 17 00:00:00 2001 From: 2003harsh Date: Sat, 9 Nov 2024 17:21:57 +0530 Subject: [PATCH] Used Gunicorn instead of WSGI for flask --- Dockerfile | 2 +- flask_app/requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d357f93..eeff9f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,4 +12,4 @@ RUN python -m nltk.downloader stopwords wordnet EXPOSE 5000 -CMD ["python","app.py"] \ No newline at end of file +CMD ["gunicorn","-b","0.0.0.0:5000","app:app"] \ No newline at end of file diff --git a/flask_app/requirements.txt b/flask_app/requirements.txt index c38dddd..4b77bcf 100644 --- a/flask_app/requirements.txt +++ b/flask_app/requirements.txt @@ -4,3 +4,4 @@ mlflow_skinny==2.15.1 nltk==3.8.1 numpy==1.24.2 pandas==1.5.3 +gunicorn