manimator / Dockerfile
theminji's picture
Update Dockerfile
a8f952f verified
raw
history blame
465 Bytes
FROM python:3.9-slim
# Install system dependencies for building pycairo and for Manim
RUN apt-get update && apt-get install -y \
build-essential \
pkg-config \
python3-dev \
ffmpeg \
libcairo2-dev \
libpango1.0-dev \
libpangocairo-1.0-0 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
ENV FLASK_APP=app.py
CMD ["python", "app.py"]