Skip to content

@jonathanong /Dockerfile
Last active

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
node + media
# 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.