Spaces:
Paused
Paused
| FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04 | |
| WORKDIR /app | |
| # System dependencies needed by Docling / PDF processing | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| python3.11 \ | |
| python3-pip \ | |
| python3.11-dev \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| poppler-utils \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && ln -sf /usr/bin/python3.11 /usr/bin/python \ | |
| && ln -sf /usr/bin/pip3 /usr/bin/pip | |
| # Install Python dependencies first (layer cache) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |