fix(docker): 优化中文字体安装及清理缓存

- 将中文字体从 wqy-microhei 改为 wqy-zenhei,提高字体兼容性
- 清理 matplotlib 缓存文件,减少镜像体积
- 更新报告图表中文字体设置,兼容 macOS 和 Linux
- 简化字体配置,避免多余字体加载
This commit is contained in:
2026-03-24 00:41:03 +08:00
parent f6bead3c0f
commit e26db9767f
2 changed files with 7 additions and 10 deletions

View File

@@ -3,10 +3,11 @@ FROM index-base:latest
# 设置工作目录
WORKDIR /app
# 安装中文字体(使用清华源加速)
# 安装中文字体
RUN apt-get update && apt-get install -y --no-install-recommends \
fonts-wqy-microhei \
&& rm -rf /var/lib/apt/lists/*
fonts-wqy-zenhei \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf ~/.cache/matplotlib
# 复制依赖文件
COPY requirements.txt .