File size: 555 Bytes
be3c982
2394ba2
323fc2f
2394ba2
 
be3c982
 
323fc2f
 
2394ba2
 
323fc2f
2394ba2
 
323fc2f
 
2394ba2
be3c982
2394ba2
 
be3c982
487ef66
 
2394ba2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.10-slim

# 1. Install system deps (added build essentials)
RUN apt-get update && apt-get install -y \
    ffmpeg \
    libsm6 \
    libxext6 \
    build-essential \
    python3-dev \
    && rm -rf /var/lib/apt/lists/*

# 2. Install Python deps (added wheel and prefer-binary)
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip wheel && \
    pip install --no-cache-dir --prefer-binary -r requirements.txt

# 3. Copy app
COPY . .

# 4. Set FFmpeg path
ENV FFMPEG_BINARY=/usr/bin/ffmpeg

CMD ["python", "app.py"]