Download Dockerfile from hfacemko/ocr: direct link, hf CLI and curl.
- Browser
- Download file 556 Bytes
-
https://huggingface.co/spaces/hfacemko/ocr/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/hfacemko/ocr/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/hfacemko/ocr/resolve/main/Dockerfile
556 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.9-slim | |
| # Set the working directory in the container to /app | |
| WORKDIR /app | |
| # Clone the repository | |
| RUN apt-get update && apt-get install -y git | |
| RUN git clone https://github.com/KenKout/OCR-AI.git /app | |
| # Install any needed packages specified in requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN mkdir /app/app/downloads | |
| RUN chmod 777 /app/app/downloads | |
| RUN mkdir /.streamlit | |
| RUN chmod 777 /.streamlit | |
| # Run app.py when the container launches | |
| CMD ["python", "run.py"] | |