Walter Mantovani commited on
Commit
fced608
·
1 Parent(s): 2a27a1c
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. requirements.txt +2 -1
Dockerfile CHANGED
@@ -28,5 +28,6 @@ COPY --chown=user . $HOME/app
28
  EXPOSE 5000
29
 
30
  # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
31
- CMD ["flask", "run", "--host=0.0.0.0"]
 
32
  # CMD ["python", "-m", "flask", "run", "--host=0.0.0.0"]
 
28
  EXPOSE 5000
29
 
30
  # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
31
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
32
+ # CMD ["flask", "run", "--host=0.0.0.0"]
33
  # CMD ["python", "-m", "flask", "run", "--host=0.0.0.0"]
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  Flask
2
- Flask-SQLAlchemy
 
 
1
  Flask
2
+ Flask-SQLAlchemy
3
+ gunicorn