raksa-the-wildcats
12th commit
713ce6a
raw
history blame contribute delete
863 Bytes
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"]