Commit 93c23a0c by zhangxingmin

push

parent 0733f2a0
# ============================================================ # ============================================================
# 构建阶段 - 创建包含 LibreOffice 的基础镜像 # 构建阶段 - 创建包含 LibreOffice 的基础镜像
# ============================================================ # ============================================================
FROM openjdk:8-jre-slim as base-builder FROM eclipse-temurin:8-jre-jammy as base-builder
ENV LANG=zh_CN.UTF-8 \ ENV LANG=zh_CN.UTF-8 \
LANGUAGE=zh_CN:zh \ LANGUAGE=zh_CN:zh \
LC_ALL=zh_CN.UTF-8 \ LC_ALL=zh_CN.UTF-8 \
DEBIAN_FRONTEND=noninteractive DEBIAN_FRONTEND=noninteractive
# 用 echo 逐行写入清华源(兼容旧版 Docker Builder,不支持 heredoc) # 替换为阿里云 Ubuntu 源(jammy = 22.04)
RUN echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free" > /etc/apt/sources.list && \ RUN sed -i 's|archive.ubuntu.com|mirrors.aliyun.com|g' /etc/apt/sources.list && \
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free" >> /etc/apt/sources.list && \ sed -i 's|security.ubuntu.com|mirrors.aliyun.com|g' /etc/apt/sources.list
echo "deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free" >> /etc/apt/sources.list && \
cat /etc/apt/sources.list
# 关键:加 -o Acquire::Check-Valid-Until=false 绕过 Release 过期检查 # 安装字体、LibreOffice 及中文语言包
RUN apt-get update -o Acquire::Check-Valid-Until=false && \ 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 \
......
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