Spaces:
Running
Running
Update Dockerfile
Browse files- 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 |
-
#
|
41 |
-
RUN pip install --no-cache-dir \
|
42 |
-
|
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
|