From a5dccccd861312a7a14810e2ecd7921ffa380dae Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 22 Jan 2026 12:33:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=20Dockerfile=EF=BC=8C?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20huggingface=5Fhub=20=E5=AE=89=E8=A3=9D?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E4=BB=A5=E7=AC=A6=E5=90=88=20Debian=20bookwo?= =?UTF-8?q?rm=20=E7=9A=84=20PEP=20668=20=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3d3201d..565f043 100644 --- a/Dockerfile +++ b/Dockerfile @@ -232,9 +232,10 @@ RUN apt-get update --fix-missing && apt-get install -y --no-install-recommends \ && rm -rf /var/lib/apt/lists/* # 階段 12:安裝 Python 工具(pipx)+ huggingface_hub(用於模型下載) +# 注意:Debian bookworm 使用 PEP 668,需要 --break-system-packages 來安裝系統級套件 RUN pipx install "markitdown[all]" \ && pipx install "pdf2zh" \ - && pip3 install --no-cache-dir huggingface_hub + && pip3 install --no-cache-dir --break-system-packages huggingface_hub # 階段 13:安裝 mineru(可能在 arm64 上有問題,加入錯誤處理) RUN pipx install "mineru[all]" || echo "⚠️ mineru 安裝失敗(可能是 arm64 相容性問題),跳過..."