thecodeworm commited on
Commit
6db1994
·
verified ·
1 Parent(s): 4af2fc4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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
- # 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 .
 
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 .