Spaces:
Sleeping
Sleeping
Download Dockerfile from BlackSpire/ClientInfoOCR: direct link, hf CLI and curl.
- Browser
- Download file 462 Bytes
-
https://huggingface.co/spaces/BlackSpire/ClientInfoOCR/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BlackSpire/ClientInfoOCR/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BlackSpire/ClientInfoOCR/resolve/main/Dockerfile
462 Bytes
| FROM python:3.11-slim | |
| # Install poppler-utils (required by pdf2image for PDF → PNG conversion) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| poppler-utils \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app files | |
| COPY app.py . | |
| COPY index.html . | |
| # HF Spaces expects the app on port 7860 | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |