-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
58 lines (51 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
58 lines (51 loc) · 1.41 KB
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
52
53
54
55
56
57
58
FROM ubuntu:14.04
MAINTAINER CREATIVE AREA <contact@creative-area.net>
# Let the conatiner know that there is no tty
ENV DEBIAN_FRONTEND noninteractive
# Install basics dependencies
RUN apt-get -qq update && apt-get install -y \
curl \
unzip \
pkg-config \
automake \
build-essential \
git
# Install Libvips dependencies
RUN apt-get install -y \
gobject-introspection \
gtk-doc-tools \
libglib2.0-dev \
libjpeg-turbo8-dev \
libpng12-dev \
libwebp-dev \
libtiff5-dev \
libexif-dev \
libxml2-dev \
swig \
libmagickwand-dev \
libgsf-1-dev \
liblcms2-dev \
libxml2-dev \
libmagickcore-dev
# Install NodeJS
ENV IOJS_VERSION 3.x
RUN curl -sL https://deb.nodesource.com/setup_iojs_$IOJS_VERSION | bash - && apt-get install -y iojs
# Build libvips
WORKDIR /tmp
ENV LIBVIPS_VERSION_MAJOR 8
ENV LIBVIPS_VERSION_MINOR 0
ENV LIBVIPS_VERSION_PATCH 2
ENV LIBVIPS_VERSION $LIBVIPS_VERSION_MAJOR.$LIBVIPS_VERSION_MINOR.$LIBVIPS_VERSION_PATCH
RUN \
curl -O http://www.vips.ecs.soton.ac.uk/supported/$LIBVIPS_VERSION_MAJOR.$LIBVIPS_VERSION_MINOR/vips-$LIBVIPS_VERSION.tar.gz && \
tar zvxf vips-$LIBVIPS_VERSION.tar.gz && \
cd vips-$LIBVIPS_VERSION && \
./configure --disable-debug --disable-static --disable-introspection --without-python --without-orc --without-fftw $1 && \
make && \
make install && \
ldconfig
# Clean up
WORKDIR /
RUN apt-get autoclean && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*