针对 GitBook 新版生成 PDF 体积过大且无法压缩的问题,基于开源工具 gitbook2pdf 构建 Docker 镜像,通过 weasyprint 替代 calibre 实现电子书生成。镜像采用 python:3. 阅读全文