HARISH20205 commited on
Commit
b161b58
·
1 Parent(s): 8de8289
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. requirements.txt +2 -1
Dockerfile CHANGED
@@ -35,5 +35,5 @@ EXPOSE 5000
35
  ENV FLASK_APP app.py
36
  ENV FLASK_RUN_HOST 0.0.0.0
37
 
38
- # Start the application
39
- CMD ["flask", "run", "-h", "0.0.0.0", "-p", "5000"]
 
35
  ENV FLASK_APP app.py
36
  ENV FLASK_RUN_HOST 0.0.0.0
37
 
38
+ # Start the application with gunicorn
39
+ CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app"]
requirements.txt CHANGED
@@ -10,4 +10,5 @@ flask==2.1.0
10
  werkzeug==2.1.0
11
  aiohttp
12
  cryptography
13
- flask[async]
 
 
10
  werkzeug==2.1.0
11
  aiohttp
12
  cryptography
13
+ flask[async]
14
+ gunicorn