Sign inSign up

mecodia/weasyprint-server

By mecodia

•Updated 26 minutes ago

Buildkit cache
Image
0

10K+

mecodia/weasyprint-server repository overview

⁠docker-weasyprint

This is a very simple Dockerfile based on Alpine Linux⁠. It creates small (135MB+) weasyprint⁠ service. It uses a wsgi server by aquavitae⁠ to provide weasyprint as a web service.

A sample docker-compose configuration is as follows:

services:
    weasyprint:
        build: .
        ports:
          - '5001:5001'

To use, POST some HTML to localhost:5001/pdf. The response will be a rendered pdf file.

⁠Health Checks

A GET to localhost:5001/health should result in an ok response.

A GET to localhost:5001/version should output the weasyprint version (currently 0.39).

⁠Fonts

In order to make fonts available to weasyprint, simply copy them into ./fonts and build the image.

Tag summary

Content type

Image

Digest

sha256:0b3c29f58…

Size

102.7 MB

Last updated

26 minutes ago

docker pull mecodia/weasyprint-server:v1