Skip to content

Commit

Permalink
增加字体
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-roy committed Nov 28, 2024
1 parent 5a2b581 commit e0e2e90
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion DockerfileChrome
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,21 @@ RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak &

# 更新系统和安装基础工具
RUN yum update -y && \
yum install -y wget unzip fonts-noto-cjk fontconfig libX11 libXcomposite libXcursor libXdamage \
yum install -y wget unzip fontconfig libX11 libXcomposite libXcursor libXdamage \
libXext libXi libXtst cups-libs libXScrnSaver pango alsa-lib atk at-spi2-atk gtk3 \
mesa-libEGL mesa-libgbm dbus && \
yum clean all

RUN yum install -y dbus

# 安装常用的中文字体包
RUN yum install -y fonts-noto-cjk google-noto-cjk-fonts \
&& yum clean all \
&& fc-cache -f -v

# 设置环境变量,确保字体被正确加载
ENV FONTCONFIG_PATH=/etc/fonts


# 安装 Google Chrome
RUN wget https://mirrors.aliyun.com/google-chrome/google-chrome/google-chrome-stable-110.0.5481.100-1.x86_64.rpm && \
Expand Down

0 comments on commit e0e2e90

Please sign in to comment.