feat: 新增 Lite 版 v0.1.15-lite

- Dockerfile.lite: 輕量版,僅保留英/簡/繁語言
- 移除 Inkscape/VIPS/ImageMagick 以減小體積 (< 1.5 GB)
- docker-build-lite.yml: 自動觸發 Lite 版發布
- docker-build-remote.yml: 改進交互邏輯,支援 standard/full/lite 版本
- release.yml: 修正只觸發一般版發布
This commit is contained in:
Your Name 2026-01-24 15:47:04 +08:00
parent 506340ecda
commit 1b8cae30a0
9 changed files with 1222 additions and 81 deletions

View file

@ -1,25 +1,31 @@
# ==============================================================================
# ConvertX-CN Full 擴充版 Dockerfile
# 版本v0.1.6
# 版本v0.1.15
# ==============================================================================
#
# ⚠️ 重要說明:
# 此 Dockerfile 必須基於 ConvertX-CN 官方 Image
# 用途:為進階使用者提供擴充功能的範本
# 📦 Image 說明:
# - 基於 ConvertX-CN 官方 Image一般版進行擴充
# - 適合需要更多語言 OCR 或完整 TexLive 的進階使用者
# - ⚠️ 體積較大(可能超過 10GB
#
# 🎯 適用場景:
# - 需要 65 種 OCR 語言全支援
# - 需要完整 TexLive特殊 LaTeX 套件)
# - 多語言企業環境
#
# 📦 使用方式:
# 1. 確保已有 convertx/convertx-cn:latest 或自行 build
# 2. 取消註解需要的功能區塊
# 3. 執行docker build -f Dockerfile.full -t convertx-cn-full .
#
# ⚠️ 風險提示:
# ⚠️ 風險提示:
# - 每個擴充功能都會增加 Image 大小
# - 全部啟用可能使 Image 超過 10GB
# - 全部啟用可能使 Image 超過 15GB
# - 請依實際需求選擇性啟用
#
# ==============================================================================
# 基於 ConvertX-CN 官方 Image
# 基於 ConvertX-CN 官方 Image(一般版)
FROM convertx/convertx-cn:latest
# ==============================================================================
@ -27,6 +33,7 @@ FROM convertx/convertx-cn:latest
# ==============================================================================
# 說明:完整 LaTeX 支援,適合需要特殊 LaTeX 套件的使用者
# 風險Image 體積大幅增加
# 一般版已內建texlive-base, texlive-latex-base, texlive-xetex, texlive-lang-cjk
# ------------------------------------------------------------------------------
# RUN apt-get update && apt-get install -y --no-install-recommends \
# texlive-full \
@ -41,6 +48,7 @@ FROM convertx/convertx-cn:latest
# - 全部語言:約 +2GB
#
# 💡 建議:僅安裝實際需要的語言
# 一般版已內建eng, chi-tra, chi-sim, jpn, kor, deu, fra
# ------------------------------------------------------------------------------
# --- 歐洲語言(西歐)---
@ -203,23 +211,15 @@ FROM convertx/convertx-cn:latest
# ==============================================================================
# 🔧 進階轉換工具
# ==============================================================================
# --- OpenCV電腦視覺相關轉換---
# 約 +200MB
# RUN apt-get update && apt-get install -y --no-install-recommends \
# python3-opencv \
# && apt-get clean && rm -rf /var/lib/apt/lists/*
# --- 額外影片編解碼器 ---
# 約 +50MB
# RUN apt-get update && apt-get install -y --no-install-recommends \
# libavcodec-extra \
# && apt-get clean && rm -rf /var/lib/apt/lists/*
# 一般版已內建OpenCV, libavcodec-extra
# 以下工具在一般版中已包含,無需額外安裝
# ------------------------------------------------------------------------------
# ==============================================================================
# 🌐 額外 Locale 設定
# ==============================================================================
# 如需更多語言的 locale 支援,取消以下註解
# 一般版已內建en_US, zh_TW, zh_CN, ja_JP, ko_KR, de_DE, fr_FR
# ------------------------------------------------------------------------------
# RUN sed -i 's/# es_ES.UTF-8 UTF-8/es_ES.UTF-8 UTF-8/' /etc/locale.gen && \
# sed -i 's/# it_IT.UTF-8 UTF-8/it_IT.UTF-8 UTF-8/' /etc/locale.gen && \
@ -234,6 +234,15 @@ FROM convertx/convertx-cn:latest
# 📋 擴充功能總覽
# ==============================================================================
#
# 一般版已內建功能:
# - 核心轉換LibreOffice, FFmpeg, ImageMagick, Pandoc, Inkscape
# - OCRTesseract7 種語言)
# - PDF 翻譯PDFMathTranslate, BabelDOC
# - PDF 轉 MDMinerU
# - 字型Noto CJK, Liberation, 標楷體
# - TexLive基礎 + CJK + 德法
# - OpenCV, libavcodec-extra
#
# | 功能 | 預估大小 | 風險等級 |
# |-------------------------|----------|----------|
# | 完整 TexLive | +3GB | 高 |