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