Commit 7ca1f888 by zhangxingmin

push

parent 4be9ba06
......@@ -7,7 +7,11 @@ LABEL maintainer="zxm<2060197959@qq.com>"
# 创建目录
RUN mkdir -p /home/app
# 安装 LibreOffice 和完整的中文字体包
# 使用阿里云镜像源加速下载
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
# 安装 LibreOffice 和完整的中文字体包(合并RUN命令减少层数)
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libreoffice \
......@@ -20,14 +24,13 @@ RUN apt-get update && \
fonts-noto-cjk \
fonts-droid-fallback \
fontconfig \
locales \
&& \
locales && \
# 设置中文 locale
echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen zh_CN.UTF-8 && \
# 清理缓存
# 清理缓存和临时文件
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
# 更新字体缓存
fc-cache -f -v
......@@ -38,7 +41,7 @@ ENV LC_ALL=zh_CN.UTF-8
# 验证安装
RUN echo "=== 验证字体安装 ===" && \
fc-list :lang=zh && \
fc-list :lang=zh | head -5 && \
echo "=== 验证LibreOffice ===" && \
libreoffice --version
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment