File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM alpine:3.5
2+
3+ # Environment Variables
4+ ARG LIBVIPS_VERSION_MAJOR_MINOR=7.42
5+ ARG LIBVIPS_VERSION_PATCH=3
6+ ARG MOZJPEG_VERSION="v3.1"
7+
8+ # Install dependencies
9+ RUN echo "http://dl-cdn.alpinelinux.org/alpine/v3.5/community" >> /etc/apk/repositories && \
10+ apk update && \
11+ apk upgrade && \
12+ apk add \
13+ zlib libxml2 libxslt glib libexif lcms2 fftw \
14+ giflib libpng libwebp orc tiff poppler-glib librsvg && \
15+
16+ apk add --no-cache --virtual .build-dependencies autoconf automake build-base \
17+ git libtool nasm zlib-dev libxml2-dev libxslt-dev glib-dev \
18+ libexif-dev lcms2-dev fftw-dev giflib-dev libpng-dev libwebp-dev orc-dev tiff-dev \
19+ poppler-dev librsvg-dev && \
20+
21+ # Install mozjpeg
22+ cd /tmp && \
23+ git clone git://github.com/mozilla/mozjpeg.git && \
24+ cd /tmp/mozjpeg && \
25+ git checkout ${MOZJPEG_VERSION} && \
26+ autoreconf -fiv && ./configure --prefix=/usr && make install && \
27+
28+ # Install libvips
29+ wget -O- http://www.vips.ecs.soton.ac.uk/supported/${LIBVIPS_VERSION_MAJOR_MINOR}/vips-${LIBVIPS_VERSION_MAJOR_MINOR}.${LIBVIPS_VERSION_PATCH}.tar.gz | tar xzC /tmp && \
30+ cd /tmp/vips-${LIBVIPS_VERSION_MAJOR_MINOR}.${LIBVIPS_VERSION_PATCH} && \
31+ ./configure --prefix=/usr \
32+ --without-python \
33+ --without-gsf \
34+ --enable-debug=no \
35+ --disable-dependency-tracking \
36+ --disable-static \
37+ --enable-silent-rules && \
38+ make -s install-strip && \
39+ cd $OLDPWD && \
40+
41+ # Cleanup
42+ rm -rf /tmp/vips-${LIBVIPS_VERSION_MAJOR_MINOR}.${LIBVIPS_VERSION_PATCH} && \
43+ rm -rf /tmp/mozjpeg && \
44+ apk del --purge .build-dependencies && \
45+ rm -rf /var/cache/apk/*
46+
You can’t perform that action at this time.
0 commit comments