Skip to content

Commit

Permalink
feat (docker): add a docker file for cn mirrors
Browse files Browse the repository at this point in the history
  • Loading branch information
reycn authored Dec 19, 2024
1 parent 979150c commit d0b8e42
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions script/Dockerfile.China
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim

WORKDIR /app


EXPOSE 7860

ENV PYTHONUNBUFFERED=1
ADD "https://ghgo.xyz/https://github.com/satbyy/go-noto-universal/releases/download/v7.0/GoNotoKurrent-Regular.ttf" /app
RUN apt-get update && \
apt-get install --no-install-recommends -y libgl1 && \
rm -rf /var/lib/apt/lists/* && uv pip install --system --no-cache huggingface-hub && \
python3 -c "from huggingface_hub import hf_hub_download; hf_hub_download('wybxc/DocLayout-YOLO-DocStructBench-onnx','doclayout_yolo_docstructbench_imgsz1024.onnx');"

COPY . .

RUN uv pip install --system --no-cache .

CMD ["pdf2zh", "-i"]

0 comments on commit d0b8e42

Please sign in to comment.