Spaces:
Sleeping
Sleeping
Dan Vancea commited on
Commit ·
a635c41
1
Parent(s): ef7e0b2
tontoelculo
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -28,9 +28,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 28 |
COPY . .
|
| 29 |
|
| 30 |
# Expose the port that the Flask app uses
|
| 31 |
-
EXPOSE
|
| 32 |
|
| 33 |
# While your script uses `app.run()`, running a production WSGI server like Gunicorn
|
| 34 |
# is standard practice for handling concurrent requests and better resource management.
|
| 35 |
# You can revert to `CMD ["python", "call_models.py"]` if you strictly want the built-in server.
|
| 36 |
-
CMD ["gunicorn", "--bind", "0.0.0.0:
|
|
|
|
| 28 |
COPY . .
|
| 29 |
|
| 30 |
# Expose the port that the Flask app uses
|
| 31 |
+
EXPOSE 7860
|
| 32 |
|
| 33 |
# While your script uses `app.run()`, running a production WSGI server like Gunicorn
|
| 34 |
# is standard practice for handling concurrent requests and better resource management.
|
| 35 |
# You can revert to `CMD ["python", "call_models.py"]` if you strictly want the built-in server.
|
| 36 |
+
CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "call_models:app"]
|