Download Dockerfile from achimrabus/polyscriptor-htr-demo: direct link, hf CLI and curl.
- Browser
- Download file 677 Bytes
-
https://huggingface.co/spaces/achimrabus/polyscriptor-htr-demo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/achimrabus/polyscriptor-htr-demo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/achimrabus/polyscriptor-htr-demo/resolve/main/Dockerfile
677 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| POLYSCRIPTOR_PROFILE=hf_space_demo \ | |
| HF_HOME=/tmp/huggingface \ | |
| PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| # Kraken requires numpy>=2.0; install after base deps so pip upgrades numpy cleanly | |
| RUN pip install --no-cache-dir "kraken>=6.0.0" | |
| COPY . /app | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "uvicorn", "web.polyscriptor_server:app", "--host", "0.0.0.0", "--port", "7860"] | |