Spaces:
Sleeping
Sleeping
File size: 863 Bytes
d6f01a3 713ce6a d6f01a3 713ce6a d6f01a3 713ce6a |
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 |
FROM python:3.10-slim
# Install system dependencies required for Manim including LaTeX
RUN apt-get update && apt-get install -y \
libcairo2-dev \
libpango1.0-dev \
libgirepository1.0-dev \
libxml2-dev \
libxslt1-dev \
libffi-dev \
libssl-dev \
pkg-config \
build-essential \
ffmpeg \
git \
texlive-latex-base \
texlive-latex-extra \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-xetex \
texlive-luatex \
dvipng \
dvisvgm \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements first for better caching
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Expose port
EXPOSE 7860
# Run the application (fix the command)
CMD ["python", "app.py"] |