Skip to content

Commit 55f98cc

Browse files
committed
update Dockerfile add font support
1 parent aea5eba commit 55f98cc

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

.idea/workspace.xml

Lines changed: 11 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ RUN mvn clean package -DskipTests -Dmaven.gitcommitid.skip=true
1313
#FROM openjdk:23-jdk-bookworm
1414
FROM amazoncorretto:21-alpine-jdk
1515

16+
# 安装字体和字体配置工具
17+
RUN apk --no-cache add \n fontconfig \n ttf-dejavu \n ttf-droid \n ttf-freefont \n ttf-liberation \n font-noto-cjk \n && fc-cache -f -v
18+
1619
# 从构建阶段复制 jar 文件
1720
COPY --from=builder /app/target/phantoms-backend-1.0-SNAPSHOT.jar /app/phantoms-backend.jar
1821

0 commit comments

Comments
 (0)