Michael Natanael commited on
Commit
38140ea
·
1 Parent(s): 6f23467

change threads to 6

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -4,9 +4,9 @@
4
  FROM python:3.9
5
 
6
  # Set proper Python threading configuration
7
- ENV OMP_NUM_THREADS=8
8
- ENV NUMEXPR_NUM_THREADS=8
9
- ENV MKL_NUM_THREADS=8
10
 
11
  RUN apt update
12
  RUN apt --yes install ffmpeg
@@ -22,4 +22,4 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
22
 
23
  COPY --chown=user . /app
24
  # CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
25
- CMD ["gunicorn", "--timeout", "300", "--workers", "1", "--threads", "8", "-b", "0.0.0.0:7860", "app:app"]
 
4
  FROM python:3.9
5
 
6
  # Set proper Python threading configuration
7
+ ENV OMP_NUM_THREADS=6
8
+ ENV NUMEXPR_NUM_THREADS=6
9
+ ENV MKL_NUM_THREADS=6
10
 
11
  RUN apt update
12
  RUN apt --yes install ffmpeg
 
22
 
23
  COPY --chown=user . /app
24
  # CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
25
+ CMD ["gunicorn", "--timeout", "300", "--workers", "1", "--threads", "6", "-b", "0.0.0.0:7860", "app:app"]