9

I am using Docker image php:8.0-fpm-alpine3.14 which I have a Sylius project and I would like use wkhtmltopdf, so I added these lines in Dockerfile:

RUN apk --update --no-cache add \
   wkhtmltopdf \
    libgcc \
    libstdc++ \
    musl \
    qt5-qtbase \
    qt5-qtbase-x11 \
    qt5-qtsvg \
    qt5-qtwebkit \
    ttf-freefont \
    ttf-dejavu \
    ttf-droid \
    ttf-liberation \
    xvfb \
    fontconfig

# Add openssl dependencies for wkhtmltopdf
RUN echo 'https://dl-cdn.alpinelinux.org/alpine/v3.8/main' >> /etc/apk/repositories && \
    apk add --no-cache libcrypto1.0 libssl1.0

RUN ln -s /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf;
RUN chmod +x /usr/local/bin/wkhtmltopdf;

But I get this error when I try to use wkhtmltopdf:

> Blockquote

I don't understand why I get that error et how to fix that.

Thank you

Valentin Harrang
  • 1,081
  • 2
  • 17
  • 34
  • 3
    There is a resource "about:blank" that it is trying to load, but "about" is not a valid URI (ie http). See https://stackoverflow.com/questions/63119774/laravel-snappy-returning-failed-to-load-aboutblank-with-network-status-code-30 – cOle2 Mar 23 '22 at 14:32
  • `XDG_RUNTIME_DIR` not set is a warning and can be safely ignored. Also see: https://stackoverflow.com/q/71571296/2123530. The real error raised here is the one raised by @cOle2 – β.εηοιτ.βε Mar 23 '22 at 18:46

0 Answers0