docker打包少了系统字体

我安装Wordpress中的一个主题,有一个功能需要系统自带的字体
但是docker打包少了系统字体
请问我该如何集成系统自带字体呢?

需要imagick调用默认的系统字体
以下为报错代码
NOTICE: PHP message: PHP Fatal error: Uncaught ImagickException: unable to read font `’ @ error/annotate.c/RenderFreetype/1654 in /www/sites/xxx.xxx/index/wp-content/themes/inn-ao/functions.php:1830
Stack trace:
#0 /www/sites/xxx.xxx/index/wp-content/themes/inn-ao/functions.php(1830): Imagick->annotateImage(Object(ImagickDraw), 3, 20, 0, ‘5236’)
#1 /www/sites/xxx.xxx/index/wp-content/themes/inn-ao/functions.php(152): InnStudio\Theme\Apps\Snippets\Functions::genCaptcha(‘5236’)
#2 /www/sites/xxx.xxx/index/wp-content/themes/inn-ao/functions.php(3409): InnStudio\Theme\Addons\SignCaptcha\SignCaptchaApi->genCaptcha()
#3 /www/sites/xxx.xxx/index/wp-content/themes/inn-ao/functions.php(3409): InnStudio\Theme\Addons\SignCaptcha\Ajax->processGetCaptcha()
#4 /www/sites/xxx.xxx/index/wp-includes/class-wp-hook.php(324): InnStudio\Theme\Addons\SignCaptcha\Ajax->display(‘’)
#5 /www/sites/xxx.xxx/index/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(‘’, Array)
#6 /www/sites/xxx.xxx/index/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#7 /www/sites/xxx.xxx/index/wp-admin/admin-ajax.php(203): do_action(‘wp_ajax_nopriv_…’)
#8 {main}
thrown in /www/sites/xxx.xxx/index/wp-content/themes/inn-ao/functions.php on line 1830

1Panel 是容器化安装的 PHP 运行环境,你可以尝试进入容器终端内安装需要的字体。