-
Notifications
You must be signed in to change notification settings - Fork 14
/
vips.ruby.alpine.Dockerfile
34 lines (31 loc) · 1.8 KB
/
vips.ruby.alpine.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
ARG RUBY_ALPINE_VERSION
FROM ruby:$RUBY_ALPINE_VERSION
ARG RUBY_ALPINE_VERSION
ENV RUBY_ALPINE_VERSION $RUBY_ALPINE_VERSION
# docker build - -t vips-ruby2.3.8 --build-arg RUBY_ALPINE_VERSION=2.3.8-alpine3.8 --build-arg VIPS_VERSION=8.9.2 <vips.ruby.alpine.Dockerfile
# based on felixbuenemann/vips-alpine and codechimpio/vips-alpine
# TODO: also take a look at https://github.com/jcupitt/docker-builds/blob/master/ruby-vips-alpine/Dockerfile
# we don't install from checkouted folder, because we want to test that the gem is available at Rubygems
ARG VIPS_VERSION
ENV VIPS_VERSION $VIPS_VERSION
RUN set -ex -o pipefail && \
wget -O- https://github.com/libvips/libvips/releases/download/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.gz | tar xzC /tmp && \
apk update && apk upgrade && apk add --no-cache \
zlib libxml2 glib-dev gobject-introspection \
libjpeg-turbo libexif lcms2 fftw libpng \
orc libgsf openexr && \
apk add --no-cache --virtual vips-dependencies \
build-base \
zlib-dev libxml2-dev gobject-introspection-dev \
libjpeg-turbo-dev libexif-dev lcms2-dev fftw-dev libpng-dev \
orc-dev libgsf-dev openexr-dev && \
cd /tmp/vips-${VIPS_VERSION} && ./configure --prefix=/usr \
--without-python \
--without-gsf \
--without-tiff \
--enable-debug=no \
--disable-static \
--disable-dependency-tracking \
--enable-silent-rules && \
make -s install-strip && apk del --purge vips-dependencies && \
cd $OLDPWD && rm -rf /tmp/vips-${VIPS_VERSION}