node-2 / requirements.txt
sfdghsdvxfbgn's picture
Upload 7 files
d42d358 verified
Raw
History Blame Contribute Delete
1.12 kB
# 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