faaizashiq commited on
Commit
0f051e5
·
verified ·
1 Parent(s): 67de1d5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -23,5 +23,5 @@ USER user
23
  ENV HOME=/home/user \
24
  PATH=/home/user/.local/bin:$PATH
25
 
26
- # 2 workers, 120s timeout
27
- CMD gunicorn --workers=2 --timeout=120 --bind=0.0.0.0:${PORT:-7860} backend.main:app
 
23
  ENV HOME=/home/user \
24
  PATH=/home/user/.local/bin:$PATH
25
 
26
+ # 1 worker (to maximize CPU/RAM allocation for GGUF), 300s timeout (for slower CPU inference)
27
+ CMD gunicorn --workers=1 --timeout=300 --bind=0.0.0.0:${PORT:-7860} backend.main:app