Download Dockerfile from bk939448/ocr-api: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/bk939448/ocr-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bk939448/ocr-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bk939448/ocr-api/resolve/main/Dockerfile
302 Bytes
| FROM python:3.10 | |
| RUN apt-get update && \ | |
| apt-get install -y poppler-utils tesseract-ocr tesseract-ocr-hin && \ | |
| pip install --no-cache-dir fastapi uvicorn pytesseract pillow pdf2image python-multipart | |
| COPY . /app | |
| WORKDIR /app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |