alamnahin commited on
Commit
8d15e07
·
1 Parent(s): 7961ec9

Fix pip deps: add constraints + ffmpeg

Browse files
Files changed (2) hide show
  1. Dockerfile +7 -2
  2. constraints.txt +8 -0
Dockerfile CHANGED
@@ -2,8 +2,13 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
 
 
 
 
 
7
 
8
  COPY . .
9
 
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt-get update && apt-get install -y --no-install-recommends \
6
+ ffmpeg \
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ COPY requirements.txt constraints.txt .
10
+ RUN python -m pip install --upgrade pip \
11
+ && pip install --no-cache-dir -r requirements.txt -c constraints.txt
12
 
13
  COPY . .
14
 
constraints.txt ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Pinned versions and constraints to resolve dependency conflicts
2
+ # Ensure torch doesn't upgrade to 2.10 which requires triton==3.6.0
3
+ torch==2.3.1
4
+ # Whisper requires triton < 3
5
+ triton<3
6
+ # Explicit pins for whisper libs used by the project
7
+ openai-whisper==20231117
8
+ whisper-timestamped==1.15.4