# OCR Service Development Environment Unit 5 uses the repository-local virtual environment `ocr-service/.venv`. It is intentionally retained between runs and ignored by Git. Do not install these dependencies globally. ## Install From the repository root: ```bash ocr-service/.venv/bin/python -m pip install -r ocr-service/requirements.txt ``` Activate it with `source ocr-service/.venv/bin/activate`. ## Test ```bash ocr-service/.venv/bin/python -m pytest ocr-service/tests ``` The container build downloads the pinned PaddleOCR models. Runtime startup loads those baked models before readiness can report healthy. Deploy one replica with a maximum of 3 CPU and 5 GiB RAM; Docker image labels document these platform-enforced limits. Build from the repository root so the Dockerfile can use the service-scoped paths: ```bash docker build -f ocr-service/Dockerfile -t rag-ocr-service . ```