Commit 4be9ba06 by zhangxingmin

push

parent e31fb1f3
...@@ -7,17 +7,40 @@ LABEL maintainer="zxm<2060197959@qq.com>" ...@@ -7,17 +7,40 @@ LABEL maintainer="zxm<2060197959@qq.com>"
# 创建目录 # 创建目录
RUN mkdir -p /home/app RUN mkdir -p /home/app
# 使用阿里云镜像源并安装 LibreOffice # 安装 LibreOffice 和完整的中文字体包
RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \ RUN apt-get update && \
sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends \ apt-get install -y --no-install-recommends \
libreoffice \ libreoffice \
libreoffice-writer \ libreoffice-writer \
libreoffice-l10n-zh-cn \
fonts-liberation \ fonts-liberation \
fonts-dejavu && \ fonts-dejavu \
fonts-wqy-microhei \
fonts-wqy-zenhei \
fonts-noto-cjk \
fonts-droid-fallback \
fontconfig \
locales \
&& \
# 设置中文 locale
echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen zh_CN.UTF-8 && \
# 清理缓存
apt-get clean && \ apt-get clean && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/* && \
# 更新字体缓存
fc-cache -f -v
# 设置环境变量
ENV LANG=zh_CN.UTF-8
ENV LANGUAGE=zh_CN:zh
ENV LC_ALL=zh_CN.UTF-8
# 验证安装
RUN echo "=== 验证字体安装 ===" && \
fc-list :lang=zh && \
echo "=== 验证LibreOffice ===" && \
libreoffice --version
# 拷贝项目jar # 拷贝项目jar
COPY target/yd-oss-api-1.0-SNAPSHOT-exec.jar /home/app/yd-oss-api.jar COPY target/yd-oss-api-1.0-SNAPSHOT-exec.jar /home/app/yd-oss-api.jar
......
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