WebashalarForML commited on
Commit
72f039d
·
verified ·
1 Parent(s): e2aea42

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -36,16 +36,17 @@ RUN apt-get update && \
36
  # Set LLVM_CONFIG for clang-14 (needed by llvmlite)
37
  ENV LLVM_CONFIG=/usr/bin/llvm-config-14
38
 
39
- # Explicitly install compatible versions of core audio/Numba stack
40
- # Targeting a more stable Numba/llvmlite for Python 3.9 with resampy
41
- RUN pip install --no-cache-dir \
42
- numpy==1.22.4 \
43
  llvmlite==0.36.0 \
44
  numba==0.53.1 \
45
  resampy==0.3.1 \
46
  librosa==0.9.2
47
 
48
  # Install other Python dependencies from requirements.txt
 
49
  RUN pip install --no-cache-dir -r requirements.txt
50
 
51
  # Copy the rest of the application
 
36
  # Set LLVM_CONFIG for clang-14 (needed by llvmlite)
37
  ENV LLVM_CONFIG=/usr/bin/llvm-config-14
38
 
39
+ # Explicitly install NumPy 1.x first and then compatible versions of core audio/Numba stack
40
+ # Use --force-reinstall to ensure it's not a cached version that's causing issues.
41
+ RUN pip install --no-cache-dir --force-reinstall "numpy<2" \
42
+ && pip install --no-cache-dir \
43
  llvmlite==0.36.0 \
44
  numba==0.53.1 \
45
  resampy==0.3.1 \
46
  librosa==0.9.2
47
 
48
  # Install other Python dependencies from requirements.txt
49
+ # It's crucial that your requirements.txt does NOT contain a line that forces numpy>=2.0.0
50
  RUN pip install --no-cache-dir -r requirements.txt
51
 
52
  # Copy the rest of the application