Configure wkhtmltopdf with Docker4drupal

I have docker4drupal

https://github.com/wodby/docker4drupal
https://github.com/wodby/docker4drupal/releases

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.
https://github.com/Surnet/docker-wkhtmltopdf

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.

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