File size: 465 Bytes
6795b32
 
a8f952f
6795b32
a8f952f
 
 
 
 
 
 
6795b32
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
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"]