Download Dockerfile from 1u/ee: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/spaces/1u/ee/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/1u/ee/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/1u/ee/resolve/main/Dockerfile
389 Bytes
| FROM python:3.10-bookworm | |
| WORKDIR /app | |
| RUN apt update && apt install -y build-essential libglib2.0-0 libsm6 libxext6 libxrender-dev libgl1-mesa-glx | |
| RUN git clone https://github.com/sml2h3/ddddocr.git | |
| RUN cd ./ddddocr && pip install --no-cache-dir -r requirements.txt | |
| RUN pip install fastapi uvicorn pydantic | |
| CMD cd ddddocr && python -m ddddocr.__main__ api --host 0.0.0.0 --port 7860 |