Really-amin commited on
Commit
a78e2d1
·
verified ·
1 Parent(s): 2c35dd3

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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", "hf_unified_server:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "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 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"]