Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -20,7 +20,6 @@ RUN apt-get update && apt-get install -y \
20
  libavdevice-dev \
21
  libavfilter-dev \
22
  libswresample-dev \
23
- # CRITICAL FIX for torchvision/image.so: Install required libraries
24
  libjpeg-dev \
25
  libpng-dev \
26
  zlib1g-dev \
@@ -34,7 +33,8 @@ USER user
34
  # Copy requirements before install for better cache management
35
  COPY --chown=user ./requirements.txt ./requirements.txt
36
 
37
- RUN pip install --no-cache-dir --upgrade pip && \
 
38
  # 1. PyTorch ecosystem (Pinned to 2.1.0)
39
  pip install --no-cache-dir \
40
  torch==2.1.0+cpu \
@@ -42,14 +42,14 @@ RUN pip install --no-cache-dir --upgrade pip && \
42
  torchaudio==2.1.0+cpu \
43
  --index-url https://download.pytorch.org/whl/cpu \
44
  && \
45
- # 2. Pyannote ecosystem (CRITICAL: Downgraded to stable stack to fix AttributeError)
46
  pip install --no-cache-dir \
47
  pyannote.audio==2.1.1 \
48
  pyannote.metrics==3.2 \
49
  pytorch-lightning==1.6.5 \
50
  huggingface-hub \
51
  && \
52
- # 3. WhisperX ecosystem
53
  pip install --no-cache-dir \
54
  whisperx==3.3.0 \
55
  ctranslate2==4.4.0 \
 
20
  libavdevice-dev \
21
  libavfilter-dev \
22
  libswresample-dev \
 
23
  libjpeg-dev \
24
  libpng-dev \
25
  zlib1g-dev \
 
33
  # Copy requirements before install for better cache management
34
  COPY --chown=user ./requirements.txt ./requirements.txt
35
 
36
+ # CRITICAL FIX: Pin pip to an older version (<24.1) to resolve pytorch-lightning 1.6.5
37
+ RUN pip install --no-cache-dir pip==24.0 && \
38
  # 1. PyTorch ecosystem (Pinned to 2.1.0)
39
  pip install --no-cache-dir \
40
  torch==2.1.0+cpu \
 
42
  torchaudio==2.1.0+cpu \
43
  --index-url https://download.pytorch.org/whl/cpu \
44
  && \
45
+ # 2. Pyannote ecosystem (Stable stack to fix AudioMetaData)
46
  pip install --no-cache-dir \
47
  pyannote.audio==2.1.1 \
48
  pyannote.metrics==3.2 \
49
  pytorch-lightning==1.6.5 \
50
  huggingface-hub \
51
  && \
52
+ # 3. WhisperX ecosystem (Stable stack to fix ctranslate2 conflict)
53
  pip install --no-cache-dir \
54
  whisperx==3.3.0 \
55
  ctranslate2==4.4.0 \