Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +24 -45
Dockerfile
CHANGED
|
@@ -12,54 +12,33 @@ WORKDIR /app
|
|
| 12 |
# Copy the requirements file into the container at /app
|
| 13 |
COPY requirements.txt /app/
|
| 14 |
|
| 15 |
-
#
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
#
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
#
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
# Install specific LLVM 9 development packages
|
| 40 |
-
RUN apt-get install -y --no-install-recommends \
|
| 41 |
-
llvm-9-dev \
|
| 42 |
-
llvm-9 \
|
| 43 |
-
llvm-9-runtime \
|
| 44 |
-
clang-9 \
|
| 45 |
-
# Ensure standard build tools and audio libs are present
|
| 46 |
-
build-essential \
|
| 47 |
-
libedit-dev \
|
| 48 |
-
libffi-dev \
|
| 49 |
-
python3-dev \
|
| 50 |
-
libgl1-mesa-glx \
|
| 51 |
-
libsm6 \
|
| 52 |
-
libxrender1 \
|
| 53 |
-
libglib2.0-0 \
|
| 54 |
-
ffmpeg \
|
| 55 |
-
libsndfile1 \
|
| 56 |
-
libsndfile1-dev \
|
| 57 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 58 |
|
| 59 |
# Set LLVM_CONFIG to the specific version's config script
|
| 60 |
-
#
|
| 61 |
ENV LLVM_CONFIG=/usr/bin/llvm-config-9
|
| 62 |
-
# --- END LLVM INSTALLATION FIX ---
|
| 63 |
|
| 64 |
|
| 65 |
# Explicitly install compatible versions of core audio/Numba stack
|
|
|
|
| 12 |
# Copy the requirements file into the container at /app
|
| 13 |
COPY requirements.txt /app/
|
| 14 |
|
| 15 |
+
# Install build dependencies and LLVM components from Debian's default repos
|
| 16 |
+
RUN apt-get update && \
|
| 17 |
+
apt-get install -y --no-install-recommends \
|
| 18 |
+
build-essential \
|
| 19 |
+
libedit-dev \
|
| 20 |
+
libffi-dev \
|
| 21 |
+
python3-dev \
|
| 22 |
+
libgl1-mesa-glx \
|
| 23 |
+
libsm6 \
|
| 24 |
+
libxrender1 \
|
| 25 |
+
libglib2.0-0 \
|
| 26 |
+
ffmpeg \
|
| 27 |
+
libsndfile1 \
|
| 28 |
+
libsndfile1-dev \
|
| 29 |
+
# Try to install LLVM 9 directly from Debian's repositories
|
| 30 |
+
# clang-9 often pulls in the necessary llvm-9-dev components
|
| 31 |
+
clang-9 \
|
| 32 |
+
llvm-9-dev \
|
| 33 |
+
llvm-9-runtime \
|
| 34 |
+
# Sometimes just 'llvm' and 'libllvm-9-ocaml-dev' or similar
|
| 35 |
+
# is what's needed, but let's be specific for 9.
|
| 36 |
+
# If llvm-9-dev still fails, then try just clang-9.
|
| 37 |
+
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
|
| 39 |
# Set LLVM_CONFIG to the specific version's config script
|
| 40 |
+
# For Debian's llvm-9-dev, this path should be correct.
|
| 41 |
ENV LLVM_CONFIG=/usr/bin/llvm-config-9
|
|
|
|
| 42 |
|
| 43 |
|
| 44 |
# Explicitly install compatible versions of core audio/Numba stack
|