FROM python:3.12-slim
RUN apt-get update && apt-get install -y --no-install-recommends chromaprint-tools && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY pyproject.toml README.md ./
COPY am_deduper ./am_deduper
RUN pip install --no-cache-dir .
ENTRYPOINT ["am-deduper"]
