Download Dockerfile from pvanand/Rapid-OCR: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/spaces/pvanand/Rapid-OCR/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/pvanand/Rapid-OCR/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/pvanand/Rapid-OCR/resolve/main/Dockerfile
304 Bytes
| FROM python | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| ffmpeg \ | |
| imagemagick \ | |
| webp && \ | |
| apt-get upgrade -y && \ | |
| rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| RUN chmod -R 777 /app | |
| CMD ["python3", "main.py"] |