thecodeworm commited on
Commit
a8943e2
·
verified ·
1 Parent(s): 3ea0866

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -14,10 +14,14 @@ RUN apt-get update && apt-get install -y \
14
  # Upgrade pip and install build tools FIRST
15
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel cython
16
 
17
- # Copy requirements
18
- COPY requirements.txt .
 
 
 
19
 
20
- # Install Python dependencies
 
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
  # Copy application files
 
14
  # Upgrade pip and install build tools FIRST
15
  RUN pip install --no-cache-dir --upgrade pip setuptools wheel cython
16
 
17
+ # Install legacy setup.py packages separately with --no-build-isolation
18
+ # This bypasses the pkg_resources isolation bug that affects packages
19
+ # using old-style setup.py builds (openai-whisper and python-pesq)
20
+ RUN pip install --no-cache-dir --no-build-isolation openai-whisper==20231117
21
+ RUN pip install --no-cache-dir --no-build-isolation https://github.com/ludlows/python-pesq/archive/master.zip
22
 
23
+ # Copy and install remaining requirements
24
+ COPY requirements.txt .
25
  RUN pip install --no-cache-dir -r requirements.txt
26
 
27
  # Copy application files