public
Last active

node + media

  • Download Gist
Dockerfile
Shell
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
 
# https://gist.github.com/jonathanong/7366257
FROM ubuntu:13.10
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
 
# Install optipng
RUN mkdir optipng; \
curl -L http://downloads.sourceforge.net/project/optipng/OptiPNG/optipng-0.7.4/optipng-0.7.4.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.0.5.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.9.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.2.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.0/libjpeg-turbo-1.3.0.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 https://webp.googlecode.com/files/libwebp-0.4.0.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.7-10.tar.gz | \
tar -C ImageMagick --strip-components=1 -xvz; \
cd ImageMagick; \
./configure --enable-hdri \
--with-webp \
--without-dps \
--without-freetype \
--without-jbig \
--without-wmf \
--without-perl \
--without-x; \
make; \
make install; \
ldconfig /usr/local/lib; \
rm -rf ImageMagick
 
# Install node.js
RUN curl http://nodejs.org/dist/v0.11.11/node-v0.11.11-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-02-19.tar.gz | \
tar -C /usr/local/bin/ -xvz

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.