From e1c6481f17895ef5cf8b7f4f66cbc116e319f16b Mon Sep 17 00:00:00 2001 From: zhczyx Date: Fri, 17 Apr 2026 22:29:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(Dockerfile):=20=E6=9B=B4=E6=96=B0=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=8C=85=E5=B9=B6=E6=B7=BB=E5=8A=A0=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 确保在安装字体前更新系统包,避免潜在的依赖问题 --- Dockerfile | 6 ++++-- pom.xml | 40 ++++++++++++++++++++-------------------- 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4e1667e..a82dbab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ # FROM registry.ap-northeast-1.aliyuncs.com/southwave/jdk17-template:latest FROM amazoncorretto:17-alpine -# 安装 fontconfig 和 DejaVu 字体 (这是一个通用且免费的字体包) -RUN apk --no-cache upgrade && \ +# 更新系统包并安装 fontconfig 和 DejaVu 字体 (这是一个通用且免费的字体包) +RUN apk --no-cache update && \ + apk --no-cache upgrade && \ apk --no-cache add fontconfig ttf-dejavu + WORKDIR /app COPY target/data-center-receiver.jar app.jar EXPOSE 8200 diff --git a/pom.xml b/pom.xml index 6d8fa5c..7a233f2 100644 --- a/pom.xml +++ b/pom.xml @@ -613,26 +613,26 @@ - - - - - - - - - - - - - - - - - - - - +