-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
51 lines (44 loc) · 1.2 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM alpine:latest
ARG VIPS_VERSION=8.9.1
ARG VIPS_URL=https://github.com/libvips/libvips/releases/download
RUN apk update && apk upgrade
# basic packages libvips likes
RUN apk add \
build-base \
autoconf \
automake \
libtool \
bc \
zlib-dev \
expat-dev \
jpeg-dev \
tiff-dev \
glib-dev \
libjpeg-turbo-dev \
libexif-dev \
lcms2-dev \
fftw-dev \
giflib-dev \
libpng-dev \
libwebp-dev \
orc-dev \
libgsf-dev
# text rendering ... we have to download some fonts and rebuild the font
# cache
RUN apk add \
pango-dev \
msttcorefonts-installer \
wqy-zenhei --update-cache --repository http://nl.alpinelinux.org/alpine/edge/testing --allow-untrusted
RUN update-ms-fonts \
&& fc-cache -f
# there are other optional deps you can add for openslide / openexr /
# imagmagick support / Matlab support etc etc
# installing to /usr is not the best idea, but it's easy
RUN wget -O- ${VIPS_URL}/v${VIPS_VERSION}/vips-${VIPS_VERSION}.tar.gz | tar xzC /tmp
RUN cd /tmp/vips-${VIPS_VERSION} \
&& ./configure --prefix=/usr --disable-static --disable-debug \
&& make V=0 \
&& make install
RUN apk add ruby-dev
RUN rm -rf /var/cache/apk/*
RUN gem install bundler && gem install json && gem install daily_image