Skip to content

Commit c6cfbd2

Browse files
committed
Used Gunicorn instead of WSGI for flask
1 parent 57b0eec commit c6cfbd2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ RUN python -m nltk.downloader stopwords wordnet
1212

1313
EXPOSE 5000
1414

15-
CMD ["python","app.py"]
15+
CMD ["gunicorn","-b","0.0.0.0:5000","app:app"]

flask_app/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ mlflow_skinny==2.15.1
44
nltk==3.8.1
55
numpy==1.24.2
66
pandas==1.5.3
7+
gunicorn

0 commit comments

Comments
 (0)