Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-oss
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingmin
yd-oss
Commits
7ca1f888
Commit
7ca1f888
authored
Oct 13, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
4be9ba06
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
yd-oss-api/Dockerfile
+9
-6
No files found.
yd-oss-api/Dockerfile
View file @
7ca1f888
...
@@ -7,7 +7,11 @@ LABEL maintainer="zxm<2060197959@qq.com>"
...
@@ -7,7 +7,11 @@ LABEL maintainer="zxm<2060197959@qq.com>"
# 创建目录
# 创建目录
RUN
mkdir
-p
/home/app
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
&&
\
RUN
apt-get update
&&
\
apt-get install
-y
--no-install-recommends
\
apt-get install
-y
--no-install-recommends
\
libreoffice
\
libreoffice
\
...
@@ -20,14 +24,13 @@ RUN apt-get update && \
...
@@ -20,14 +24,13 @@ RUN apt-get update && \
fonts-noto-cjk
\
fonts-noto-cjk
\
fonts-droid-fallback
\
fonts-droid-fallback
\
fontconfig
\
fontconfig
\
locales
\
locales
&&
\
&&
\
# 设置中文 locale
# 设置中文 locale
echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen && \
echo "zh_CN.UTF-8 UTF-8" >> /etc/locale.gen && \
locale-gen zh_CN.UTF-8 && \
locale-gen zh_CN.UTF-8 && \
# 清理缓存
# 清理缓存
和临时文件
apt-get clean && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/lib/apt/lists/*
/tmp/* /var/tmp/*
&& \
# 更新字体缓存
# 更新字体缓存
fc-cache -f -v
fc-cache -f -v
...
@@ -38,7 +41,7 @@ ENV LC_ALL=zh_CN.UTF-8
...
@@ -38,7 +41,7 @@ ENV LC_ALL=zh_CN.UTF-8
# 验证安装
# 验证安装
RUN
echo
"=== 验证字体安装 ==="
&&
\
RUN
echo
"=== 验证字体安装 ==="
&&
\
fc-list :lang
=
zh
&&
\
fc-list :lang
=
zh
| head
-5
&&
\
echo
"=== 验证LibreOffice ==="
&&
\
echo
"=== 验证LibreOffice ==="
&&
\
libreoffice
--version
libreoffice
--version
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment