Browse Source

fix: pdf合并工具 和 安装pdf字体

大侠咬超人 4 days ago
parent
commit
4950e6eae5
1 changed files with 8 additions and 1 deletions
  1. 8 1
      Dockerfile

+ 8 - 1
Dockerfile

@@ -49,9 +49,16 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
         nss \
         freetype \
         harfbuzz \
+        # 字体(PDF 中文显示必须)
         ttf-freefont \
         font-noto-cjk \
-        && rm -rf /var/cache/apk/*
+        font-noto \
+        ttf-dejavu \
+        fontconfig \
+        # PDF 合并工具
+        poppler-utils \
+        && rm -rf /var/cache/apk/* \
+        && fc-cache -fv
 
 # 设置 Chrome 环境变量
 ENV CHROME_BIN=/usr/bin/chromium-browser \