Configure wkhtmltopdf with Docker4drupal

I have docker4drupal

and I want to install

wkhtmltoimage 0.12.5 (with patched qt)

into php container

By default we have

wkhtmltoimage 0.12.5

in the php container.

This container will help us to do that.

In the base directory where we have the docker-compose.yml file I created a new pdf directory.
In the pdf directory I created Dockerfile with the next content:

And update the docker-compose.yml file.

build: ./pdf
container_name: "${PROJECT_NAME}_php"