gere commited on
Commit
38f51bc
·
verified ·
1 Parent(s): 3ff66d1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -18,6 +18,7 @@ WORKDIR /app
18
 
19
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel
20
  RUN pip install --no-cache-dir torch torchvision torchaudio
 
21
  RUN pip install --no-cache-dir av
22
 
23
  COPY requirements.txt .
@@ -33,6 +34,8 @@ RUN useradd -m -u 1000 user
33
  RUN chown -R user:user /app
34
  USER user
35
 
 
 
36
  EXPOSE 7860
37
 
38
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "600", "app:app"]
 
18
 
19
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel
20
  RUN pip install --no-cache-dir torch torchvision torchaudio
21
+ RUN pip install --no-cache-dir torchcodec
22
  RUN pip install --no-cache-dir av
23
 
24
  COPY requirements.txt .
 
34
  RUN chown -R user:user /app
35
  USER user
36
 
37
+ ENV TORCHAUDIO_USE_BACKEND_DISPATCHER=1
38
+
39
  EXPOSE 7860
40
 
41
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "600", "app:app"]