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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -11,14 +11,13 @@ RUN apt-get update && apt-get install -y \
11
  g++ \
12
  && rm -rf /var/lib/apt/lists/*
13
 
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 .
 
11
  g++ \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # CRITICAL: setuptools>=81 removed pkg_resources.
15
+ # Pin to <81 so legacy setup.py packages (openai-whisper, python-pesq) can build.
16
+ RUN pip install --no-cache-dir "setuptools<81" wheel cython
17
+
18
+ # Install legacy packages that use old-style setup.py with pkg_resources
19
+ RUN pip install --no-cache-dir openai-whisper==20231117
20
+ RUN pip install --no-cache-dir https://github.com/ludlows/python-pesq/archive/master.zip
 
21
 
22
  # Copy and install remaining requirements
23
  COPY requirements.txt .