Spaces:
Runtime error
Runtime error
Download Dockerfile from Dhurgh/agentic-doc-intelligence: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/spaces/Dhurgh/agentic-doc-intelligence/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Dhurgh/agentic-doc-intelligence/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Dhurgh/agentic-doc-intelligence/resolve/main/Dockerfile
532 Bytes
| FROM python:3.10-slim | |
| # Install modern system dependencies (updated graphics engine for OpenCV) | |
| RUN apt-get update && apt-get install -y \ | |
| tesseract-ocr \ | |
| libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /code | |
| # Copy and install Python requirements | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy all project code | |
| COPY . . | |
| # Hugging Face Spaces run on port 7860 by default | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |