www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

Dockerfile (1914B)


      1 FROM ubuntu:14.04
      2 MAINTAINER xymostech <xymostech@gmail.com>
      3 
      4 # Install things
      5 RUN apt-get -qq update && apt-get -qqy install \
      6     git \
      7     dvipng \
      8     default-jre \
      9     default-jdk \
     10     texlive \
     11     wget \
     12     fontforge \
     13     mftrace \
     14     fonttools \
     15     optipng \
     16     advancecomp \
     17     man-db \
     18     build-essential \
     19     unzip \
     20     zlib1g-dev \
     21     python-fontforge \
     22     ruby \
     23     woff-tools \
     24     pkg-config \
     25     libharfbuzz-dev \
     26     libfreetype6-dev || true
     27 RUN gem install ttfunk --version 1.1.1
     28 
     29 # Download yuicompressor
     30 RUN mkdir /usr/share/yui-compressor/
     31 RUN wget "https://github.com/yui/yuicompressor/releases/download/v2.4.8/yuicompressor-2.4.8.jar" -O /usr/share/yui-compressor/yui-compressor.jar
     32 
     33 # Download batik-ttf2svg.jar
     34 RUN wget "https://archive.apache.org/dist/xmlgraphics/batik/batik-1.7.zip"
     35 RUN unzip -qq batik-1.7.zip
     36 RUN mv batik-1.7/batik-ttf2svg.jar /usr/share/java/
     37 
     38 # Download and compile ttf2eof (note we add a patch to make it compile)
     39 RUN wget "https://ttf2eot.googlecode.com/files/ttf2eot-0.0.2-2.tar.gz"
     40 RUN tar -xzf ttf2eot-0.0.2-2.tar.gz
     41 RUN sed -i "1s/^/#include <cstddef>/" ttf2eot-0.0.2-2/OpenTypeUtilities.h
     42 RUN make -C ttf2eot-0.0.2-2/
     43 RUN mv ttf2eot-0.0.2-2/ttf2eot /usr/bin/
     44 
     45 # Download and compile ttfautohint
     46 RUN wget "http://download.savannah.gnu.org/releases/freetype/ttfautohint-1.3.tar.gz"
     47 RUN tar -xzf ttfautohint-1.3.tar.gz
     48 RUN cd ttfautohint-1.3/ && ./configure --without-qt
     49 RUN make -C ttfautohint-1.3/
     50 RUN mv ttfautohint-1.3/frontend/ttfautohint /usr/bin
     51 
     52 # Download and compile woff2_compress
     53 RUN git clone "https://code.google.com/p/font-compression-reference/" woff2_compress
     54 RUN make -C woff2_compress/woff2/
     55 RUN mv woff2_compress/woff2/woff2_compress /usr/bin/
     56 
     57 # Download and setup MathJax-dev
     58 RUN git clone "https://github.com/khan/MathJax-dev.git"
     59 RUN cp MathJax-dev/default.cfg MathJax-dev/custom.cfg
     60 RUN make -C MathJax-dev custom.cfg.pl
     61