File size: 574 Bytes
6795b32
 
a338785
6795b32
a8f952f
 
 
 
 
 
a338785
 
6795b32
 
 
 
a338785
6795b32
 
 
a338785
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
28
29
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"]