Skip to content

Instantly share code, notes, and snippets.

@PyYoshi

PyYoshi/Dockerfile

Last active Aug 29, 2018
Embed
What would you like to do?
mozjpeg 3.3.1, vips 8.6.5
FROM debian:buster-slim
RUN apt update \
&& apt install -y \
autoconf \
wget \
nasm \
build-essential \
pkg-config \
libde265-0 \
libde265-dev \
libheif1 \
libheif-dev \
librsvg2-2 \
librsvg2-dev \
libxml2 \
libxml2-dev \
libfftw3-3 \
libfftw3-dev \
libmagickwand-6.q16-6 \
libmagickwand-6.q16-dev \
libopenexr23 \
libopenexr-dev \
liborc-0.4-0 \
liborc-0.4-dev \
gobject-introspection \
libgsf-1-114 \
libgsf-1-dev \
libglib2.0-0 \
libglib2.0-dev \
libpng16-16 \
libpng-dev \
libgif7 \
libgif-dev \
libwebp6 \
libwebp-dev \
libopenslide0 \
libopenslide-dev \
libmatio4 \
libmatio-dev \
libpoppler-glib8 \
libpoppler-glib-dev \
libcfitsio5 \
libcfitsio-dev \
libexif12 \
libexif-dev \
&& cd /tmp \
&& wget https://github.com/mozilla/mozjpeg/archive/v3.3.1.tar.gz \
&& tar xvf v3.3.1.tar.gz \
&& rm v3.3.1.tar.gz \
&& cd mozjpeg-3.3.1 \
&& autoreconf -fiv \
&& mkdir build && cd build \
&& ../configure --prefix=/opt/mozjpeg \
&& make -j8 \
&& make install \
&& cd /tmp \
&& wget https://github.com/jcupitt/libvips/releases/download/v8.6.5/vips-8.6.5.tar.gz \
&& tar xvf vips-8.6.5.tar.gz \
&& rm vips-8.6.5.tar.gz \
&& cd vips-8.6.5 \
&& mkdir build && cd build \
&& ../configure --prefix=/opt/libvips --enable-gtk-doc-html=no --enable-debug=no --without-python --with-jpeg-includes=/opt/mozjpeg/include --with-jpeg-libraries=/opt/mozjpeg/lib64 \
&& make -j8 \
&& make install \
&& cd /tmp \
&& apt purge -y \
autoconf \
wget \
nasm \
build-essential \
pkg-config \
&& apt autoremove -y \
&& rm -rf /var/lib/apt/lists/* /tmp/* \
&& /opt/libvips/bin/vips -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.