Skip to content

Commit 1c8b271

Browse files
committed
update:兼容arm架构字体
1 parent 086c4a5 commit 1c8b271

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Dockerfile-web

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,14 @@ RUN apk update && \
2323
bash \
2424
fontconfig \
2525
ttf-dejavu \
26-
font-noto-cjk-full \
27-
&& fc-cache -f -v \
2826
&& rm -rf /var/cache/apk/*
2927

28+
# 复制项目自带的中文字体
29+
COPY main/manager-web/public/generator/static/fonts/*.ttf /usr/share/fonts/
30+
31+
# 更新字体缓存
32+
RUN fc-cache -f -v
33+
3034
# 配置Nginx
3135
COPY docs/docker/nginx.conf /etc/nginx/nginx.conf
3236

0 commit comments

Comments
 (0)