File size: 1,132 Bytes
ad5c95d
 
 
eb5564e
 
 
 
 
 
ad5c95d
eb5564e
9849f83
 
eb5564e
045cb11
eb5564e
9849f83
 
eb5564e
 
 
 
 
 
 
 
ad5c95d
 
 
 
 
 
eb5564e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9849f83
 
ad9d5c0
 
 
ad5c95d
3b84ccb
1
2
3
4
5
6
7
8
9
10
11
12
13
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Set environment variable to prevent interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive

# Install all potential system-level dependencies for a full Manim installation
# This "kitchen sink" approach helps prevent future build errors.




RUN apt-get update && apt-get install -y --no-install-recommends \
    # --- Core Build Tools ---
    build-essential \
    pkg-config \
    # --- Manim Dependencies ---
    ffmpeg \
    texlive-full \
    libcairo2-dev \
    libpango1.0-dev \
    # --- Extra Dependencies for Optional Features (e.g., manim-voiceover) ---
    libgl1-mesa-glx \
    libglib2.0-0 \
    libsm6 \
    libxext6 \
    libxrender1 \
    espeak \
    sox \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

# Install Python packages specified in requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

# Copy all the application files (app.py, proof.py, etc.) into the container
COPY . .

# Expose the port Gradio runs on (7860)
EXPOSE 7860

















# The command to run when the container starts: launch the Gradio app
CMD ["gradio", "app.py"]