Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -5
Dockerfile
CHANGED
|
@@ -11,13 +11,15 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
g++ \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
-
#
|
| 15 |
-
#
|
|
|
|
| 16 |
RUN pip install --no-cache-dir "setuptools<81" wheel cython
|
| 17 |
|
| 18 |
-
# Install legacy packages
|
| 19 |
-
|
| 20 |
-
RUN pip install --no-cache-dir
|
|
|
|
| 21 |
|
| 22 |
# Copy and install remaining requirements
|
| 23 |
COPY requirements.txt .
|
|
|
|
| 11 |
g++ \
|
| 12 |
&& rm -rf /var/lib/apt/lists/*
|
| 13 |
|
| 14 |
+
# Pin setuptools<81 (pkg_resources was removed in setuptools>=81).
|
| 15 |
+
# --no-build-isolation makes pip skip creating an isolated subprocess env,
|
| 16 |
+
# so it uses OUR pinned setuptools instead of downloading the latest one.
|
| 17 |
RUN pip install --no-cache-dir "setuptools<81" wheel cython
|
| 18 |
|
| 19 |
+
# Install legacy packages with --no-build-isolation so pip reuses the
|
| 20 |
+
# pinned setuptools above instead of pulling setuptools>=81 into a temp env.
|
| 21 |
+
RUN pip install --no-cache-dir --no-build-isolation openai-whisper==20231117
|
| 22 |
+
RUN pip install --no-cache-dir --no-build-isolation https://github.com/ludlows/python-pesq/archive/master.zip
|
| 23 |
|
| 24 |
# Copy and install remaining requirements
|
| 25 |
COPY requirements.txt .
|