title: How to install wkhtmltopdf on Docker php-fpm Alpine Linux?
body: <p>I installed Wkhtmltopdf on Alpine Docker with the following command:</p>
  
  <p><code>apk add --no-cache wkhtmltopdf</code></p>
  
  <p>However when I try to run wkhtmltopdf I get:</p>
  
  <pre><code>/usr/bin/wkhtmltopdf  "test.html" "test.pdf"
  Cannot mix incompatible Qt library (version 0x50c03) with this library (version 0x50c00)
  Aborted (core dumped)
  </code></pre>
  
  <p>How can I fix that?</p>
  
  <p>EDIT:</p>
  
  <p>Seems like the issue is that some other package installs not compatable qt version. Here's my Dockerfile:</p>
  
  <pre><code>RUN apk --no-cache update \
      &amp;&amp; apk --no-cache upgrade \
      &amp;&amp; apk add --no-cache \
              mysql-client \
              php7-mysqli \
              php7-pdo \
              freetype \
              libpng \
              freetype-dev \
              libpng-dev \
              jpeg-dev \
              libjpeg \
              libjpeg-turbo-dev \
              wget \
              zlib-dev \
              ttf-freefont \
              fontconfig \
              xvfb \
              libxrender-dev \
              gettext \
              gettext-dev \
              libxml2-dev \
              gnu-libiconv-dev \
              autoconf \
              g++ \
              git \
              bash \
              wkhtmltopdf
  </code></pre>