fix: 修正 release.yml 檔案中的格式問題

This commit is contained in:
Your Name 2026-01-25 22:01:57 +08:00
parent 174eabe9d8
commit 1173d505f7

View file

@ -231,9 +231,11 @@ RUN apt-get update --fix-missing && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
tesseract-ocr tesseract-ocr-eng tesseract-ocr-chi-tra \ tesseract-ocr tesseract-ocr-eng tesseract-ocr-chi-tra \
tesseract-ocr-chi-sim tesseract-ocr-jpn tesseract-ocr-kor \ tesseract-ocr-chi-sim tesseract-ocr-jpn tesseract-ocr-kor \
tesseract-ocr-deu tesseract-ocr-fra ocrmypdf && \ tesseract-ocr-deu tesseract-ocr-fra && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
# 注意ocrmypdf 改在 python-tools stage 用 pip 安裝,避免 pikepdf 版本衝突
# ============================================================================== # ==============================================================================
# Stage 5: Fonts拆分安裝 # Stage 5: Fonts拆分安裝
# ============================================================================== # ==============================================================================
@ -293,14 +295,18 @@ RUN apt-get update --fix-missing && \
# 6.5 markitdown # 6.5 markitdown
RUN uv pip install --system --break-system-packages --no-cache "markitdown[all]" RUN uv pip install --system --break-system-packages --no-cache "markitdown[all]"
# 6.6 pdf2zhPDFMathTranslate # 6.6 ocrmypdf用 pip 安裝以確保 pikepdf 版本相容)
# 注意:不從 apt 安裝,避免與其他 Python 套件的 pikepdf 衝突
RUN uv pip install --system --break-system-packages --no-cache ocrmypdf
# 6.7 pdf2zhPDFMathTranslate
RUN uv pip install --system --break-system-packages --no-cache pdf2zh RUN uv pip install --system --break-system-packages --no-cache pdf2zh
# 6.7 babeldoc # 6.8 babeldoc
RUN uv pip install --system --break-system-packages --no-cache babeldoc || \ RUN uv pip install --system --break-system-packages --no-cache babeldoc || \
echo "⚠️ babeldoc 安裝可能有警告" echo "⚠️ babeldoc 安裝可能有警告"
# 6.8 MinerU僅 AMD64CPU-only 模式) # 6.9 MinerU僅 AMD64CPU-only 模式)
# 💡 使用 mineru不含 [all])避免安裝 PyTorch CUDA節省 ~5-8GB # 💡 使用 mineru不含 [all])避免安裝 PyTorch CUDA節省 ~5-8GB
# 💡 MinerU 會自動使用 pipeline backend 在純 CPU 環境運行 # 💡 MinerU 會自動使用 pipeline backend 在純 CPU 環境運行
RUN set -ex && \ RUN set -ex && \
@ -311,7 +317,7 @@ RUN set -ex && \
uv pip install --system --break-system-packages --no-cache -U mineru; \ uv pip install --system --break-system-packages --no-cache -U mineru; \
fi fi
# 6.9 tiktoken # 6.10 tiktoken
RUN uv pip install --system --break-system-packages --no-cache tiktoken RUN uv pip install --system --break-system-packages --no-cache tiktoken
# 設定 PATH # 設定 PATH