# Reference only — dependencies are installed directly in the Dockerfile # to allow two-layer pip caching (small packages / magic-pdf separately). # # ── Layer 1 — small + opencv-headless ──────────────────────────────────────── fastapi>=0.115.0 uvicorn[standard]>=0.32.0 python-multipart>=0.0.12 Pillow>=10.0.0 pillow-heif>=0.18.0 huggingface_hub>=0.25.0 opencv-python-headless>=4.8.0 # MUST be layer-1 so magic-pdf sees cv2 as satisfied # and does not pull in the full X11 opencv-python build # # ── Layer 2 — magic-pdf (requires --extra-index-url https://myhloli.github.io/wheels/) ── magic-pdf[full-cpu]==1.3.12 # # ── Removed ─────────────────────────────────────────────────────────────────── # python-magic — was listed in requirements but never imported in main.py # libmagic1 — C dep of python-magic, also removed from system packages