FROM python:3.11-slim

WORKDIR /app

# ffmpeg: --force-keyframes-at-cuts 재인코딩 / mp4 머지에 필요
RUN apt-get update && apt-get install -y --no-install-recommends \
    ffmpeg \
    && rm -rf /var/lib/apt/lists/*

COPY app/requirements.txt /tmp/requirements.txt
RUN pip install --no-cache-dir -r /tmp/requirements.txt

EXPOSE 8000
