Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +15 -9
Dockerfile
CHANGED
|
@@ -7,19 +7,25 @@ WORKDIR /code
|
|
| 7 |
# Set environment variable to prevent interactive prompts during package installation
|
| 8 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 9 |
|
| 10 |
-
# Install system-level dependencies
|
| 11 |
-
#
|
| 12 |
-
# - ffmpeg: required by manim for video processing
|
| 13 |
-
# - texlive-full: a full LaTeX distribution for rendering math text
|
| 14 |
-
# - build-essential, pkg-config, libcairo2-dev: NEW - required to compile pycairo
|
| 15 |
-
# This is the slowest step.
|
| 16 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 17 |
-
|
| 18 |
-
ffmpeg \
|
| 19 |
-
texlive-full \
|
| 20 |
build-essential \
|
| 21 |
pkg-config \
|
|
|
|
|
|
|
|
|
|
| 22 |
libcairo2-dev \
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
&& apt-get clean \
|
| 24 |
&& rm -rf /var/lib/apt/lists/*
|
| 25 |
|
|
|
|
| 7 |
# Set environment variable to prevent interactive prompts during package installation
|
| 8 |
ENV DEBIAN_FRONTEND=noninteractive
|
| 9 |
|
| 10 |
+
# Install all potential system-level dependencies for a full Manim installation
|
| 11 |
+
# This "kitchen sink" approach helps prevent future build errors.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 13 |
+
# --- Core Build Tools ---
|
|
|
|
|
|
|
| 14 |
build-essential \
|
| 15 |
pkg-config \
|
| 16 |
+
# --- Manim Dependencies ---
|
| 17 |
+
ffmpeg \
|
| 18 |
+
texlive-full \
|
| 19 |
libcairo2-dev \
|
| 20 |
+
libpango1.0-dev \
|
| 21 |
+
# --- Extra Dependencies for Optional Features (e.g., manim-voiceover) ---
|
| 22 |
+
libgl1-mesa-glx \
|
| 23 |
+
libglib2.0-0 \
|
| 24 |
+
libsm6 \
|
| 25 |
+
libxext6 \
|
| 26 |
+
libxrender1 \
|
| 27 |
+
espeak \
|
| 28 |
+
sox \
|
| 29 |
&& apt-get clean \
|
| 30 |
&& rm -rf /var/lib/apt/lists/*
|
| 31 |
|