NickVerri commited on
Commit
8ce71fd
·
verified ·
1 Parent(s): 11c4a55

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -3
Dockerfile CHANGED
@@ -8,14 +8,24 @@ RUN apt-get update && apt-get install -y \
8
 
9
  WORKDIR /app
10
 
11
- # Install Python requirements
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- # Copy the application code
 
 
 
 
 
 
 
 
 
 
 
16
  COPY app.py .
17
 
18
- # Streamlit config
19
  ENV STREAMLIT_SERVER_PORT=7860
20
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
21
  ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false
 
8
 
9
  WORKDIR /app
10
 
11
+ # 1. Install the "Safe" foundation (Torch 2.0, Pyannote 3.1)
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ # 2. FORCE install WhisperX without checking dependencies
16
+ # This bypasses the "ResolutionImpossible" error
17
+ RUN pip install --no-deps git+https://github.com/m-bain/whisperx.git@v3.3.1
18
+
19
+ # 3. Manually install dependencies that WhisperX would have pulled in
20
+ # (We install these manually because we skipped deps above)
21
+ RUN pip install --no-cache-dir \
22
+ faster-whisper==1.1.0 \
23
+ transformers \
24
+ nltk \
25
+ setuptools-rust
26
+
27
  COPY app.py .
28
 
 
29
  ENV STREAMLIT_SERVER_PORT=7860
30
  ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
31
  ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false