Dockerfiles for building Docker images with Prince installed.
Images are available with the following tags (multiple tags on the same line indicate the same image):
yeslogic/prince:latest
yeslogic/prince:16
yeslogic/prince:16-debian-12-slim
yeslogic/prince:16-debian-11-slim
yeslogic/prince:16-debian-12
yeslogic/prince:16-debian-11
Example:
docker run --rm -it -v $(pwd):/out yeslogic/prince:16 https://example.com/ -o /out/example.pdf
By default the Makefile will build a multi-platform image for amd64 and arm64. On
systems using Docker Desktop, this should work automatically. On Linux hosts you
need to have binfmt_misc
set up to run foreign binaries with QEMU. On Arch Linux
I did this by installing the qemu-user-static
and qemu-user-static-binfmt
packages.
make
make debian-12
make debian-12-slim BUILD_PLATFORMS=linux/amd64
debian-11
debian-12
debian-11-slim
debian-12-slim
Push images to Docker Hub:
make dockerhub
Then update the README on Docker Hub.