Docker deployment is the simplest path to a production-ready instance of RAG PDF Highlighter. The image bundles all system and Python dependencies — including PyMuPDF and its native libraries — so there is nothing to install on the host beyond Docker itself.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/MuhammadSalmanAhmad/rag-pdf-highlighter/llms.txt
Use this file to discover all available pages before exploring further.
Dockerfile
The project ships with the following Dockerfile:Steps
Build the image
From the repository root, build and tag the image:The build installs
libmupdf-dev and all Python dependencies. This takes a minute on the first run; subsequent builds use the layer cache.Run the container
Start the container and map port 8000 on the host to port 8000 inside the container:
Port mapping
The-p 8000:8000 flag maps port 8000 on your host machine to port 8000 inside the container (the port Uvicorn listens on, as declared by EXPOSE 8000 in the Dockerfile). To serve on a different host port, change the left side of the mapping — for example, -p 9090:8000 makes the API available at http://localhost:9090.
The container installs
libmupdf-dev at image build time. No additional system dependencies are needed on the host at runtime — all native libraries are self-contained inside the image.