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
24847306
Commit
24847306
authored
Sep 10, 2026
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
6fa5d63b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
yd-oss-api/Dockerfile
+10
-7
No files found.
yd-oss-api/Dockerfile
View file @
24847306
...
@@ -8,12 +8,15 @@ ENV LANG=zh_CN.UTF-8 \
...
@@ -8,12 +8,15 @@ ENV LANG=zh_CN.UTF-8 \
LC_ALL=zh_CN.UTF-8 \
LC_ALL=zh_CN.UTF-8 \
DEBIAN_FRONTEND=noninteractive
DEBIAN_FRONTEND=noninteractive
# 替换为清华源(比 aliyun 更稳定,Release 文件更新及时)
# 使用 cat 写入完整的清华源配置,避免 sed 替换导致路径错误
# 同时加上 -o Acquire::Check-Valid-Until=false 作为双保险,避免 Release 过期导致失败
RUN
cat
>
/etc/apt/sources.list
<<
'
EOF
'
RUN
sed
-i
's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g'
/etc/apt/sources.list
&&
\
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
sed
-i
's|security.debian.org|mirrors.tuna.tsinghua.edu.cn/debian-security|g'
/etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
RUN
apt-get update
-o
Acquire::Check-Valid-Until
=
false
&&
\
EOF
# 更新并安装字体、LibreOffice 及中文语言包
RUN
apt-get update
&&
\
apt-get install
-y
--no-install-recommends
\
apt-get install
-y
--no-install-recommends
\
fonts-liberation
\
fonts-liberation
\
fonts-dejavu-core
\
fonts-dejavu-core
\
...
@@ -38,7 +41,7 @@ WORKDIR /home/app
...
@@ -38,7 +41,7 @@ WORKDIR /home/app
# ============================================================
# ============================================================
FROM
base-builder
FROM
base-builder
#
只拷贝 jar 包
#
拷贝 Spring Boot 可执行 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
# 启动命令,设置 JVM 内存参数
# 启动命令,设置 JVM 内存参数
...
...
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