Walter Mantovani
commited on
Commit
·
fced608
1
Parent(s):
2a27a1c
upd
Browse files- Dockerfile +2 -1
- 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 ["
|
|
|
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
|