FROM python:3.12-slim-bookworm RUN apt-get update && apt-get install -y --no-install-recommends \ poppler-utils tesseract-ocr curl git nodejs npm \ && rm -rf /var/lib/apt/lists/* RUN pip install --no-cache-dir pymupdf==1.26.6 pypdf==6.4.0 pillow==12.0.0 WORKDIR /app COPY document.pdf schema.json /app/