Vadashuk commited on
Commit
6b0cf06
·
verified ·
1 Parent(s): d1f513a

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -24,5 +24,6 @@ ENV MKL_NUM_THREADS=4
24
  ENV OPENBLAS_NUM_THREADS=4
25
  ENV NUMEXPR_NUM_THREADS=4
26
 
27
- # Start both the API and shutdown script (1 worker so thread env vars apply to the single process)
28
- CMD ["/bin/bash", "-c", "/app/shutdown.sh & uvicorn main:app --host 0.0.0.0 --port 7860 --workers 2"]
 
 
24
  ENV OPENBLAS_NUM_THREADS=4
25
  ENV NUMEXPR_NUM_THREADS=4
26
 
27
+ # Start both the API and shutdown script.
28
+ # Keep a single worker because fit/forecast state is in-memory per process.
29
+ CMD ["/bin/bash", "-c", "/app/shutdown.sh & uvicorn main:app --host 0.0.0.0 --port 7860 --workers 1"]