From 8483cff28f034181f3c45f743d36857a027f17ef Mon Sep 17 00:00:00 2001 From: TheEssem Date: Wed, 20 Jan 2021 20:20:04 -0600 Subject: [PATCH] Added liblqr to dockerfiles --- Dockerfile.api | 11 ++++++++++- Dockerfile.bot | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/Dockerfile.api b/Dockerfile.api index cacce80..198ce8f 100644 --- a/Dockerfile.api +++ b/Dockerfile.api @@ -7,6 +7,14 @@ RUN apk add --no-cache git msttcorefonts-installer python3 alpine-sdk ffmpeg \ zlib-dev libpng-dev libjpeg-turbo-dev freetype-dev fontconfig-dev \ libtool libwebp-dev libxml2-dev pango-dev freetype fontconfig +# liblqr needs to be built manually for magik to work +# and because alpine doesn't have it in their repos +RUN git clone https://github.com/carlobaldassi/liblqr \ + && cd liblqr \ + && ./configure \ + && make \ + && make install + # install imagemagick from source rather than using the package # since the alpine package does not include pango support. RUN git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick \ @@ -25,8 +33,9 @@ RUN git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick \ --with-modules \ --with-pango \ --without-hdri \ + --with-lqr \ && make \ - && sudo make install + && make install RUN update-ms-fonts && fc-cache -f diff --git a/Dockerfile.bot b/Dockerfile.bot index debe78d..bc38038 100644 --- a/Dockerfile.bot +++ b/Dockerfile.bot @@ -7,6 +7,14 @@ RUN apk add --no-cache git msttcorefonts-installer python3 alpine-sdk ffmpeg \ zlib-dev libpng-dev libjpeg-turbo-dev freetype-dev fontconfig-dev \ libtool libwebp-dev libxml2-dev pango-dev freetype fontconfig +# liblqr needs to be built manually for magik to work +# and because alpine doesn't have it in their repos +RUN git clone https://github.com/carlobaldassi/liblqr \ + && cd liblqr \ + && ./configure \ + && make \ + && make install + # install imagemagick from source rather than using the package # since the alpine package does not include pango support. RUN git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick \ @@ -25,8 +33,9 @@ RUN git clone https://github.com/ImageMagick/ImageMagick.git ImageMagick \ --with-modules \ --with-pango \ --without-hdri \ + --with-lqr \ && make \ - && sudo make install + && make install RUN update-ms-fonts && fc-cache -f