Dockerfile.China 645 B

12345678910111213141516171819
  1. FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
  2. WORKDIR /app
  3. EXPOSE 7860
  4. ENV PYTHONUNBUFFERED=1
  5. ADD "https://ghgo.xyz/https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Regular.ttf" /app
  6. RUN apt-get update && \
  7. apt-get install --no-install-recommends -y libgl1 && \
  8. rm -rf /var/lib/apt/lists/* && uv pip install --system --no-cache huggingface-hub && \
  9. python3 -c "from huggingface_hub import hf_hub_download; hf_hub_download('wybxc/DocLayout-YOLO-DocStructBench-onnx','doclayout_yolo_docstructbench_imgsz1024.onnx');"
  10. COPY . .
  11. RUN uv pip install --system --no-cache .
  12. CMD ["pdf2zh", "-i"]