forked from thomaswelton/docker-fontcustom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
19 lines (13 loc) · 792 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM thomaswelton/ruby
MAINTAINER Thomas Welton <[email protected]>
# Install ttfautohint
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y -f libfreetype6 libqtcore4 libqtgui4
RUN URL='https://launchpad.net/ubuntu/+source/ttfautohint/0.97-1/+build/5252862/+files/ttfautohint_0.97-1_amd64.deb'; FILE=`mktemp`; wget "$URL" -qO $FILE && sudo dpkg -i $FILE; rm $FILE
# Install fontforge
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y fontforge
# Install sfnt2woff
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y zlib1g-dev unzip
RUN wget http://people.mozilla.org/~jkew/woff/woff-code-latest.zip && unzip woff-code-latest.zip -d sfnt2woff && cd sfnt2woff && make && mv sfnt2woff /usr/local/bin/
# Install fontcustom gem
RUN gem install fontcustom
VOLUME ["/fontcustom"]