title: How to install and run wkhtmltopdf Docker image
body: <p>I want to install and run <strong>wkhtmltopdf</strong> from <code>Dockerfile</code> of <code>Spring-Boot</code> application when I will build and run the <code>Spring-boot</code> application.
  I have written the below given scripts in <code>Dockerfile</code> to install <strong>wkhtmltopdf</strong>.</p>
  <pre><code>FROM debian:jessie
  
  RUN apt-get update \
      &amp;&amp; apt-get install -y \
          curl \
          libxrender1 \
          libfontconfig \
          libxtst6 \
          xz-utils
  
  RUN curl &quot;https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz&quot; -L -o &quot;wkhtmltopdf.tar.xz&quot;
  RUN tar Jxvf wkhtmltopdf.tar.xz
  RUN mv wkhtmltox/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf
  
  ENTRYPOINT [&quot;wkhtmltopdf&quot;]
  
  </code></pre>
  <p>The above scripts created a docker images, but how to run those images to test <strong>wkhtmltopdf</strong> is  working or not? Or Any other approach we have to install &amp; run <strong>wkhtmltopdf</strong> from <code>Dockerfile</code>?</p>