Created
February 18, 2025 19:08
-
-
Save asadMarmash/b2866169280ececb7cdc1bb289341573 to your computer and use it in GitHub Desktop.
dockerfile for installing wkhtmltopdf 0.12.6.1 (with patched qt)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:24.04 | |
WORKDIR /app | |
RUN apt-get update -y | |
RUN apt-get install -y \ | |
xfonts-75dpi \ | |
wget \ | |
fontconfig \ | |
libjpeg-turbo8 \ | |
libx11-6 \ | |
libxcb1 \ | |
libxext6 \ | |
libxrender1 \ | |
xfonts-base | |
RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb | |
RUN dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb | |
RUN apt --fix-broken install -y | |
RUN rm wkhtmltox_0.12.6.1-2.jammy_amd64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to build and run:
Build the image:
docker build -t wkhtmltopdf-container .
Run the container with any
wkhtmltopdf
command:Output:
Run any
wkhtmltopdf
command, such as: