Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

node + media

View 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 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140
 
# https://gist.github.com/jonathanong/7366257
FROM ubuntu:14.04
MAINTAINER Jonathan Ong "me@jongleberry.com"
 
RUN apt-get update; \
apt-get -y upgrade;
 
# Install dependencies
RUN apt-get install -y python g++ make curl libvips-dev
 
# Install optipng
RUN mkdir optipng; \
curl -L http://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.5/optipng-0.7.5.tar.gz | \
tar -C optipng --strip-components=1 -xvz; \
cd optipng; \
./configure; \
make; \
make install; \
rm -rf optipng
 
# Install libgif
RUN mkdir libgif; \
curl -L http://downloads.sourceforge.net/project/giflib/giflib-5.x/giflib-5.1.0.tar.gz | \
tar -C libgif --strip-components=1 -xvz; \
cd libgif; \
./configure; \
make; \
make install; \
rm -rf libgif
 
# Install libtiff
RUN mkdir libtiff; \
curl ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz | \
tar -C libtiff --strip-components=1 -xvz; \
cd libtiff; \
./configure; \
make; \
make install; \
rm -rf libtiff
 
# Install zlib
# Dependents: libpng
RUN mkdir zlib; \
curl http://zlib.net/zlib-1.2.8.tar.gz | \
tar -C zlib --strip-components=1 -xvz; \
cd zlib; \
./configure; \
make; \
make install; \
rm -rf zlib
 
# Install libpng
RUN mkdir libpng; \
curl ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng16/libpng-1.6.13.tar.gz | \
tar -C libpng --strip-components=1 -xvz; \
cd libpng; \
./configure; \
make; \
make install; \
rm -rf libpng
 
# Install yasm
# Dependents: libjpeg-turbo
RUN mkdir yasm; \
curl http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz | \
tar -C yasm --strip-components=1 -xvz; \
cd yasm; \
./configure; \
make; \
make install; \
rm -rf yasm
 
# Install libjpeg-turbo
RUN mkdir libjpeg; \
curl -L http://downloads.sourceforge.net/project/libjpeg-turbo/1.3.1/libjpeg-turbo-1.3.1.tar.gz | \
tar -C libjpeg --strip-components=1 -xvz; \
cd libjpeg; \
./configure; \
make; \
make install prefix=/usr/local libdir=/usr/local/lib; \
rm -rf libjpeg
 
# Install libwebp
RUN mkdir libwebp; \
curl http://downloads.webmproject.org/releases/webp/libwebp-0.4.2.tar.gz | \
tar -C libwebp --strip-components=1 -xvz; \
cd libwebp; \
./configure; \
make; \
make install; \
rm -rf libwebp
 
# Install ImageMagick
# Depends on most of the stuff above, so last
RUN mkdir ImageMagick; \
curl http://www.imagemagick.org/download/ImageMagick-6.8.9-8.tar.gz | \
tar -C ImageMagick --strip-components=1 -xvz; \
cd ImageMagick; \
./configure \
--with-quantum-depth=8 \
--with-webp \
--without-dps \
--without-freetype \
--without-jbig \
--without-wmf \
--without-perl \
--without-x; \
make; \
make install; \
ldconfig /usr/local/lib; \
rm -rf ImageMagick
 
RUN mkdir nip2; \
curl http://www.vips.ecs.soton.ac.uk/supported/current/nip2-7.40.4.tar.gz | \
tar -C nip2 --strip-components=1 -xvz; \
cd nip2; \
./configure; \
make; \
make install; \
rm -rf nip2
 
RUN mkdir vips; \
curl http://www.vips.ecs.soton.ac.uk/supported/current/vips-7.40.11.tar.gz | \
tar -C vips --strip-components=1 -xvz; \
cd vips; \
./configure; \
make; \
make install; \
rm -rf vips
 
# Install node.js
RUN curl http://nodejs.org/dist/v0.11.14/node-v0.11.14-linux-x64.tar.gz | \
tar -C /usr/local/ --strip-components=1 -xvz; \
npm update -g npm
 
# Install ffmpeg
# http://ffmpeg.gusari.org/static/
RUN curl http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.2014-03-12.tar.gz | \
tar -C /usr/local/bin/ -xvz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.