gere commited on
Commit
462fd5a
·
verified ·
1 Parent(s): ccd8f75

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -1,12 +1,16 @@
1
- FROM python:3.11-slim
2
 
3
  RUN apt-get update && apt-get install -y \
4
  ffmpeg \
5
  libsndfile1 \
 
6
  && rm -rf /var/lib/apt/lists/*
7
 
8
  WORKDIR /app
9
 
 
 
 
10
  COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
@@ -14,4 +18,4 @@ COPY . .
14
 
15
  EXPOSE 7860
16
 
17
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app", "--timeout", "600"]
 
1
+ FROM pytorch/pytorch:2.2.2-cuda11.8-cudnn8-runtime
2
 
3
  RUN apt-get update && apt-get install -y \
4
  ffmpeg \
5
  libsndfile1 \
6
+ git \
7
  && rm -rf /var/lib/apt/lists/*
8
 
9
  WORKDIR /app
10
 
11
+ ENV OMP_NUM_THREADS=1
12
+ ENV MKL_NUM_THREADS=1
13
+
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
18
 
19
  EXPOSE 7860
20
 
21
+ CMD ["gunicorn", "--bind", "0.0.0.0:7860", "app:app", "--timeout", "600", "--workers", "1"]