How to make an alpine based image with fonts
- 1 month 2 weeks ago
I have a python app that generates PDF base on HTML, i used a library called weasyprint (http://weasyprint.org/) and underliying this uses a lot of libraries like cairo and lxml, i managed to install everything in my image and now my app can run without any exception.
The problems is that the generated PDF looks really really pixelated, i've founded that this is because the fonts i've installed in alpine are low-res font and i managed to fix this in runtime installing fonts from edge community packages, but when i do this in docker image and build it the problem is still happening.
So my question is, how can i generate an alpine based image with good quality fonts installed?