FROM python:3.13-slim

RUN apt-get update \
 && apt-get install -y --no-install-recommends ffmpeg ca-certificates \
 && rm -rf /var/lib/apt/lists/*

WORKDIR /app
COPY pyproject.toml README.md ./
COPY ei ./ei
RUN pip install --no-cache-dir .

STOPSIGNAL SIGINT
ENTRYPOINT ["ei"]
