Commit 24847306 by zhangxingmin

push

parent 6fa5d63b
...@@ -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 内存参数
......
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