Spaces:
Runtime error
Runtime error
Download Dockerfile from jkos9/plotscribe: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/spaces/jkos9/plotscribe/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/jkos9/plotscribe/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/jkos9/plotscribe/resolve/main/Dockerfile
489 Bytes
| # Small CPU-only image: Python + OpenCV (headless) + Tesseract. No GPU, no ML models. | |
| FROM python:3.12-slim | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends tesseract-ocr tesseract-ocr-eng \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY pyproject.toml README.md ./ | |
| COPY plotscribe ./plotscribe | |
| RUN pip install --no-cache-dir ".[web]" | |
| ENV OMP_NUM_THREADS=1 | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "plotscribe.web:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "2"] | |