ceh-vedant commited on
Commit
9baa8ab
·
verified ·
1 Parent(s): 1458172

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -17
Dockerfile CHANGED
@@ -1,29 +1,14 @@
1
  FROM python:3.11-slim
2
 
3
  RUN apt-get update && apt-get install -y \
4
- git ffmpeg libsm6 libxext6 libgl1 \
5
  && rm -rf /var/lib/apt/lists/*
6
 
7
  WORKDIR /app
8
  COPY requirements.txt .
9
 
10
- # Step 1: Install tribev2 (pins torch to 2.5.x-2.6.x)
11
  RUN pip install --no-cache-dir git+https://github.com/facebookresearch/tribev2.git
12
-
13
- # Step 2: Install whisperx deps that are compatible with tribev2's torch,
14
- # then whisperx itself without pulling its own torch version.
15
- RUN pip install --no-cache-dir \
16
- faster-whisper \
17
- ctranslate2 \
18
- pyannote.audio \
19
- nltk \
20
- pandas
21
-
22
- RUN pip install --no-cache-dir \
23
- git+https://github.com/m-bain/whisperX.git \
24
- --no-deps
25
-
26
- # Step 3: Install remaining app deps
27
  RUN pip install --no-cache-dir -r requirements.txt
28
 
29
  # Non-root user (HuggingFace Spaces requirement)
 
1
  FROM python:3.11-slim
2
 
3
  RUN apt-get update && apt-get install -y \
4
+ git ffmpeg libsm6 libxext6 libgl1 libsndfile1 \
5
  && rm -rf /var/lib/apt/lists/*
6
 
7
  WORKDIR /app
8
  COPY requirements.txt .
9
 
10
+ # Install tribev2 and all app dependencies
11
  RUN pip install --no-cache-dir git+https://github.com/facebookresearch/tribev2.git
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
  # Non-root user (HuggingFace Spaces requirement)