WeasyPrint install instructions for Alpine Linux
See original GitHub issueJust wanted to recommend adding to documentation instructions to install WeasyPrint in Alpine Linux 3.6. It took me a while but I made it work with this command:
apk --update --upgrade add gcc musl-dev jpeg-dev zlib-dev libffi-dev cairo-dev pango-dev gdk-pixbuf
If someone else have a more efficient aproach (important when working with docker containers for small size images) can comment on this.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top Results From Across the Web
First Steps — WeasyPrint 57.1 documentation - CourtBouillon
The easiest way to install WeasyPrint on Linux is to use the package manager of your distribution. WeasyPrint is packaged for recent versions...
Read more >weasyprint - Alpine Linux packages
Package, weasyprint. Version, 57.1-r1. Description, A visual rendering engine for HTML and CSS that can export to PDF.
Read more >James VL / weasyprint-docker-alpine - GitLab
Clone the repo, build the image, and run it, exposing port 5001. $ git clone https://gitlab.com/jamesvl/weasyprint-docker-alpine.git $Â ...
Read more >resolve pipenv install weasyprint error in Docker
I'm using Alpine linux for my Docker setup. Here is the Dockerfile. ... unable to execute 'gcc': No such file or directory. django...
Read more >WeasyPrint Documentation - manpages.ubuntu!
Installation WeasyPrint 54.1 depends on: • Python ≥ 3.6.0 • Pango ... pip install weasyprint weasyprint --info Alpine ≥ 3.12 To install WeasyPrint...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Finally! With the latest versions of alpine & weasyprint we can keep build pretty small & clean.
Here my current approach:
Packages
cairo-dev pango-dev gdk-pixbufneed in runtime, so we kept them. Other ones need only on building stage - so we clean.In requirements.txt just weasyprint and my specific dependencies, not related to this issue.
And this is also documented which I somehow overread 🙄