PDFMathTranslate icon indicating copy to clipboard operation
PDFMathTranslate copied to clipboard

将onnx模型和字体打包进docker镜像

Open awwaawwa opened this issue 11 months ago • 4 comments

https://github.com/Byaidu/PDFMathTranslate/issues/247 1&3,然后顺便压缩了一下docker镜像大小

awwaawwa avatar Dec 18 '24 10:12 awwaawwa

路径动了会不会影响pip包呀?

hellofinch avatar Dec 18 '24 10:12 hellofinch

如果'/app/GoNotoKurrent-Regular.ttf'没找到的话,会fallback到原来的方案,如下图所示:

CleanShot 2024-12-18 at 20 04 48@2x

awwaawwa avatar Dec 18 '24 10:12 awwaawwa

镜像各层大小如下图所示,基本都是各种依赖占地方了。 CleanShot 2024-12-18 at 20 31 52@2x

awwaawwa avatar Dec 18 '24 12:12 awwaawwa

The issue has been automatically translated into English.


The size of each layer of the image is shown in the figure below. Basically, various dependencies take up space. CleanShot 2024-12-18 at 20 31 52@2x

Issues-translate-bot avatar Dec 18 '24 12:12 Issues-translate-bot