Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -34,5 +34,5 @@ ENV PYTHONUNBUFFERED=1
|
|
| 34 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
| 35 |
CMD curl -f http://localhost:7860/api/health || exit 1
|
| 36 |
|
| 37 |
-
# Start the FastAPI server
|
| 38 |
-
CMD ["python", "-m", "uvicorn", "
|
|
|
|
| 34 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
|
| 35 |
CMD curl -f http://localhost:7860/api/health || exit 1
|
| 36 |
|
| 37 |
+
# Start the FastAPI server using app.py (simpler, more stable)
|
| 38 |
+
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--timeout-keep-alive", "75"]
|