Dockerfile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. FROM debian:stretch
  2. RUN apt-get -qq update \
  3. && apt-get install -y --no-install-recommends bash unzip ca-certificates build-essential \
  4. curl git mercurial make binutils bison gcc autoconf libtool automake swig \
  5. gobject-introspection libglib2.0-dev libexpat1-dev libxml2-dev libfftw3-dev \
  6. libjpeg-dev libpng-dev libwebp-dev libgif-dev libexif-dev liblcms2-dev gtk-doc-tools
  7. RUN curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer | bash -
  8. RUN \
  9. for VIPS_VERSION in "8.3" "8.4" "8.5" "8.6" "8.7"; do \
  10. mkdir -p /root/vips \
  11. && cd /root/vips \
  12. && mkdir /root/vips/$VIPS_VERSION \
  13. && curl -s -S -L -o $VIPS_VERSION.zip https://github.com/libvips/libvips/archive/$VIPS_VERSION.zip \
  14. && unzip $VIPS_VERSION.zip \
  15. && cd libvips-$VIPS_VERSION \
  16. && test -f autogen.sh && ./autogen.sh || ./bootstrap.sh \
  17. && ./configure \
  18. --prefix=/root/vips/$VIPS_VERSION \
  19. --without-python \
  20. --without-gsf \
  21. --without-orc \
  22. --disable-debug \
  23. --disable-dependency-tracking \
  24. --disable-static \
  25. --enable-silent-rules \
  26. --enable-gtk-doc-html=no \
  27. --enable-gtk-doc=no \
  28. --enable-pyvips8=no \
  29. && make \
  30. && make install \
  31. && cd .. \
  32. && rm -rf $VIPS_VERSION.zip libvips-$VIPS_VERSION; \
  33. done
  34. WORKDIR /go/src
  35. ENV GOPATH=/go
  36. ENTRYPOINT [ "/bin/bash" ]