- 复制字体到docker
sudo docker cp /root/data/fonts 容器id:/usr/share/fonts/
- 进入容器
docker exec -it 容器id /bin/bash
- 到bin目录
cd /usr/bin
- 执行
./documentserver-generate-allfonts.sh
- 退出容器,重启容器
exit
docker restart onlyoffice
https://helpcenter.onlyoffice.com/installation/docs-community-install-fonts-linux.aspx