Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
-
#
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
#
|
| 19 |
-
|
| 20 |
-
RUN pip install --no-cache-dir -
|
| 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 .
|