Skip to content

Instantly share code, notes, and snippets.

@chregu
Created November 7, 2018 13:41
Show Gist options
  • Save chregu/0d63c48f0f0986ee876cc6f5bbefe551 to your computer and use it in GitHub Desktop.
Save chregu/0d63c48f0f0986ee876cc6f5bbefe551 to your computer and use it in GitHub Desktop.
Dockerfile Vips for Amazon Linux
FROM amazonlinux:2018.03.0.20180827 as basebase
RUN yum makecache fast && yum update -y
RUN yum install -y gdb libtool libpng-devel libjpeg-devel libtiff-devel gcc wget findutils \
gobject-introspection-devel swig glib2-devel expat-devel libexif-devel gtk-doc gcc-c++ git gdb
ENV HOME /root
WORKDIR /root
RUN git clone https://github.com/jcupitt/libvips.git
ENV VIPS_BRANCH=8.7
RUN cd libvips && \
git checkout $VIPS_BRANCH
RUN cd libvips && ./autogen.sh
RUN cd libvips && ./configure --disable-static --without-python --without-matio --without-cfitsio --without-openslide \
--disable-gtk-doc-html
RUN cd libvips && make -j 3 && make install
#for debugging in gdb
RUN debuginfo-install expat-2.1.0-10.21.amzn1.x86_64 glib2-2.36.3-5.18.amzn1.x86_64 glibc-2.17-222.173.amzn1.x86_64 jbigkit-libs-2.0-11.4.amzn1.x86_64 libexif-0.6.21-5.6.amzn1.x86_64 libffi-3.0.13-16.5.amzn1.x86_64 libjpeg-turbo-1.2.90-5.14.amzn1.x86_64 libpng-1.2.49-2.14.amzn1.x86_64 libtiff-4.0.3-27.29.amzn1.x86_64 zlib-1.2.8-7.18.amzn1.x86_64
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment