Skip to content

Commit 0292b65

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

2 files changed

Lines changed: 20 additions & 16 deletions

File tree

.idea/workspace.xml

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

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ RUN mvn clean package -DskipTests -Dmaven.gitcommitid.skip=true
1414
FROM amazoncorretto:21-alpine-jdk
1515

1616
# 安装字体和字体配置工具
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
17+
RUN apk --no-cache add \
18+
fontconfig \
19+
ttf-dejavu \
20+
ttf-droid \
21+
ttf-freefont \
22+
ttf-liberation \
23+
font-noto-cjk \
24+
&& fc-cache -f -v
1825

1926
# 从构建阶段复制 jar 文件
2027
COPY --from=builder /app/target/phantoms-backend-1.0-SNAPSHOT.jar /app/phantoms-backend.jar

0 commit comments

Comments
 (0)