├── Dockerfile └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:20.04 2 | 3 | ENV LIBVIPS_VERSION_MAJOR=8 LIBVIPS_VERSION_MINOR=12 LIBVIPS_VERSION_PATCH=2 4 | ENV LIBVIPS_VERSION=$LIBVIPS_VERSION_MAJOR.$LIBVIPS_VERSION_MINOR.$LIBVIPS_VERSION_PATCH 5 | 6 | RUN \ 7 | # Install dependencies 8 | apt-get update && \ 9 | DEBIAN_FRONTEND=noninteractive apt-get install -y \ 10 | automake build-essential curl \ 11 | gobject-introspection gtk-doc-tools libglib2.0-dev libpng-dev \ 12 | libjpeg-turbo8-dev \ 13 | libwebp-dev libtiff5-dev libgif-dev libexif-dev libxml2-dev libpoppler-glib-dev \ 14 | swig libpango1.0-dev libmatio-dev libopenslide-dev libcfitsio-dev \ 15 | libgsf-1-dev fftw3-dev liborc-0.4-dev librsvg2-dev libimagequant-dev && \ 16 | # If you want to use libmagick (but not working with static): libmagickcore-dev libmagickwand-dev && \ 17 | # 18 | # Build libvips 19 | cd /tmp && \ 20 | curl -L https://github.com/libvips/libvips/releases/download/v$LIBVIPS_VERSION/vips-$LIBVIPS_VERSION.tar.gz > vips-$LIBVIPS_VERSION.tar.gz && \ 21 | tar xf vips-$LIBVIPS_VERSION.tar.gz && \ 22 | cd vips-$LIBVIPS_VERSION && \ 23 | ./configure --enable-debug=no --without-python --without-magick && \ 24 | make && make install && ldconfig && \ 25 | # 26 | # Clean up 27 | apt-get remove -y curl automake build-essential && \ 28 | apt-get autoremove -y && \ 29 | apt-get autoclean && \ 30 | apt-get clean && \ 31 | rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* 32 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [Dockerfile](https://registry.hub.docker.com/u/marcbachmann/libvips/) for libvips 2 | 3 | Installs libvips on `ubuntu:20.04` as base image. 4 | 5 | ## Supported tags 6 | 7 | - [`7.40`](https://github.com/marcbachmann/dockerfile-libvips/tree/master) 8 | - [`7.42`](https://github.com/marcbachmann/dockerfile-libvips/tree/7.42.3) 9 | - [`8.0.2`](https://github.com/marcbachmann/dockerfile-libvips/tree/8.0.2) 10 | - [`8.1.0`](https://github.com/marcbachmann/dockerfile-libvips/tree/8.1.0) 11 | - [`8.2.3`](https://github.com/marcbachmann/dockerfile-libvips/tree/8.2.3) 12 | - [`8.4.1`](https://github.com/marcbachmann/dockerfile-libvips/tree/8.4.1) 13 | - [`8.6.2`](https://github.com/marcbachmann/dockerfile-libvips/tree/8.6.2) 14 | - [`8.12.2`](https://github.com/marcbachmann/dockerfile-libvips/tree/8.12.2) 15 | 16 | ## How to use 17 | 18 | Download the image using: 19 | 20 | ```bash 21 | $ docker pull marcbachmann/libvips 22 | # .... pulling down image 23 | ``` 24 | 25 | Or extend from it: 26 | ``` 27 | echo ' 28 | FROM marcbachmann/libvips 29 | RUN apt-get update && apt-get install curl && curl -fsSL https://deb.nodesource.com/setup_16.x | bash && apt-get install nodejs 30 | ' > Dockerfile 31 | 32 | docker build -t libvips-with-node . 33 | ``` 34 | 35 | 36 | ## License 37 | 38 | Licensed under [MIT](http://opensource.org/licenses/mit-license.html) 39 | --------------------------------------------------------------------------------