How to make an alpine based image with fonts

1 post / 0 new
#1 Sun, 2017-04-30 22:30
  • lmva94's picture
  • Offline
  • Last seen: 9 months 3 weeks ago
  • Joined: 2017-04-30


I have a python app that generates PDF base on HTML, i used a library called weasyprint ( 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?