From 83329cf9dbb424ce04d9a550f5b1ca2a70e0e6bb Mon Sep 17 00:00:00 2001 From: hrz <1710360675@qq.com> Date: Mon, 22 Sep 2025 21:34:09 +0800 Subject: [PATCH] =?UTF-8?q?update:=E4=BC=98=E5=8C=96=E7=BC=96=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile-web | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Dockerfile-web b/Dockerfile-web index a347a88e..583d2e6b 100644 --- a/Dockerfile-web +++ b/Dockerfile-web @@ -18,9 +18,15 @@ FROM bellsoft/liberica-runtime-container:jre-21-glibc # 安装Nginx和字体库 RUN apk update && \ - apk add --no-cache nginx bash fontconfig ttf-dejavu && \ - apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ msttcorefonts-installer || true && \ - rm -rf /var/cache/apk/* + apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \ + nginx \ + bash \ + fontconfig \ + ttf-dejavu \ + msttcorefonts-installer \ + && ACCEPT_EULA=Y apk add --no-cache msttcorefonts-installer \ + && fc-cache -f -v \ + && rm -rf /var/cache/apk/* # 更新字体缓存 RUN (printf 'YES\n' | update-ms-fonts || true) && fc-cache -f -v