Spaces:
Sleeping
Sleeping
Download Dockerfile from Jeamorg/ocr_api_server: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/Jeamorg/ocr_api_server/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Jeamorg/ocr_api_server/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Jeamorg/ocr_api_server/resolve/main/Dockerfile
434 Bytes
| FROM python:3.8-slim-bookworm | |
| RUN mkdir /app | |
| COPY ./*.txt ./*.py ./*.sh ./*.onnx /app/ | |
| RUN cd /app \ | |
| && python3 -m pip install --upgrade pip\ | |
| && pip3 install --no-cache-dir -r requirements.txt\ | |
| && rm -rf /tmp/* && rm -rf /root/.cache/* \ | |
| && apt-get --allow-releaseinfo-change update && apt install libgl1-mesa-glx libglib2.0-0 -y | |
| WORKDIR /app | |
| CMD ["python3", "ocr_server.py", "--port", "7860", "--ocr", "--det"] | |