Vishal Patil commited on
Commit
e64997a
·
verified ·
1 Parent(s): cf03f1b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -10
Dockerfile CHANGED
@@ -1,19 +1,12 @@
1
  FROM python:3.10-slim
2
 
3
- # Install system dependencies including ffmpeg + pkg-config
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  libsndfile1 \
7
  git \
8
  build-essential \
9
  pkg-config \
10
- libavformat-dev \
11
- libavcodec-dev \
12
- libavdevice-dev \
13
- libavutil-dev \
14
- libavfilter-dev \
15
- libswscale-dev \
16
- libswresample-dev \
17
  && apt-get clean \
18
  && rm -rf /var/lib/apt/lists/*
19
 
@@ -21,10 +14,11 @@ WORKDIR /app
21
 
22
  COPY requirements.txt .
23
 
24
- RUN pip install --no-cache-dir --upgrade pip && \
25
  pip install --no-cache-dir torch==2.1.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cpu && \
26
  pip install --no-cache-dir ctranslate2==3.24.0 && \
27
- pip install --no-cache-dir av==10.0.0 && \
 
28
  pip install --no-cache-dir faster-whisper==0.10.1 && \
29
  pip install --no-cache-dir whisperx==3.1.1 && \
30
  pip install --no-cache-dir pyannote.audio==3.1.1 && \
 
1
  FROM python:3.10-slim
2
 
3
+ # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  ffmpeg \
6
  libsndfile1 \
7
  git \
8
  build-essential \
9
  pkg-config \
 
 
 
 
 
 
 
10
  && apt-get clean \
11
  && rm -rf /var/lib/apt/lists/*
12
 
 
14
 
15
  COPY requirements.txt .
16
 
17
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
18
  pip install --no-cache-dir torch==2.1.0 torchaudio==2.1.0 --index-url https://download.pytorch.org/whl/cpu && \
19
  pip install --no-cache-dir ctranslate2==3.24.0 && \
20
+ pip install --no-cache-dir "av==10.0.0" --only-binary=av || \
21
+ pip install --no-cache-dir "av==9.2.0" --only-binary=av && \
22
  pip install --no-cache-dir faster-whisper==0.10.1 && \
23
  pip install --no-cache-dir whisperx==3.1.1 && \
24
  pip install --no-cache-dir pyannote.audio==3.1.1 && \