Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
-
#
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
-
#
|
|
|
|
| 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
|