-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters