Created
June 16, 2019 10:08
-
-
Save stek29/0210bd9023f6ba7130780898666ac069 to your computer and use it in GitHub Desktop.
imagemagick with liblqr in docker
This file contains 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 debian:9 AS builder | |
RUN apt-get update && \ | |
apt-get install -y \ | |
build-essential \ | |
pkg-config \ | |
wget \ | |
tar \ | |
libltdl-dev \ | |
libpng-dev \ | |
libjpeg-dev \ | |
libwebp-dev \ | |
liblqr-dev \ | |
glib2.0-dev \ | |
&& apt-get clean | |
RUN mkdir build | |
WORKDIR build | |
RUN wget https://www.imagemagick.org/download/ImageMagick.tar.xz | |
RUN tar -x --strip 1 -f ImageMagick.tar.xz | |
RUN ./configure \ | |
--enable-shared \ | |
--enable-delegate-build \ | |
--with-modules \ | |
--with-webp=yes \ | |
--with-png=yes \ | |
--with-jpeg=yes \ | |
--with-lqr=yes \ | |
--with-freetype=yes \ | |
--without-gslib \ | |
--without-x \ | |
--without-wmf \ | |
--disable-opencl \ | |
--without-magick-plus-plus \ | |
--without-perl \ | |
--disable-silent-rules \ | |
--disable-dependency-tracking | |
RUN make -j4 | |
RUN make install DESTDIR=/dest | |
FROM debian:9 AS runner | |
RUN apt-get update && \ | |
apt-get install -y \ | |
libwebp6 \ | |
libwebpdemux2 \ | |
libwebpmux2 \ | |
libpng16-16 \ | |
libjpeg62-turbo \ | |
liblqr-1-0 \ | |
glib2.0 \ | |
libltdl7 \ | |
libgomp1 \ | |
&& apt-get clean | |
COPY --from=builder /dest / | |
RUN ldconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Спасибо, идеально 🙏