File size: 521 Bytes
5d32888
 
d92d74c
5d32888
d92d74c
 
 
 
 
 
d7fc021
d92d74c
5d32888
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM python:3.11-slim

# Add all necessary libs for video/image and C builds
RUN apt-get update && \
    apt-get install -y ffmpeg \
    build-essential \
    gcc \
    libcairo2-dev \
    pkg-config \
    python3-dev \
    libpango1.0-dev \
    && rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY . /app

RUN pip install --no-cache-dir --upgrade pip \
    && if [ -s requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi

EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]