Merge pull request #103 from awalterschulze/master

fixed Dockerfile
This commit is contained in:
Matthias Vogelgesang 2015-06-26 09:03:58 +02:00
commit 67f9afea56
4 changed files with 20 additions and 28 deletions

19
Dockerfile Normal file
View File

@ -0,0 +1,19 @@
## Contributed by Walter Schulze (@awalterschulze)
## Simplified by Dirk Eddelbuettel (@eddelbuettel)
FROM ubuntu:trusty
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -q \
&& apt-get install -qy \
gnuplot \
python-pygments \
texlive-full \
wget
ADD ./getFiraFont.sh ./getFiraFont.sh
RUN ./getFiraFont.sh
WORKDIR /data
VOLUME ["/data"]

View File

@ -1,4 +1,5 @@
#!/bin/sh
set -xe
xelatex mtheme.ins
xelatex -shell-escape demo.tex
xelatex -shell-escape demo.tex

View File

@ -1,28 +0,0 @@
## Contributed by Walter Schulze (@awalterschulze)
## Simpliefied by Dirk Eddelbuettel (@eddelbuettel)
FROM ubuntu:trusty
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -q \
&& apt-get install -qy \
gnuplot \
python-pygments \
texlive-full \
wget
RUN cd /tmp \
&& mkdir -p /usr/share/fonts/truetype/FiraSans \
&& mkdir -p /usr/share/fonts/opentype/FiraSans \
&& wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraMono3106.zip" \
&& wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraSans3106.zip" \
&& unzip FiraSans3106.zip \
&& unzip FiraMono3106.zip \
&& cp Fira*/WEB/*.ttf /usr/share/fonts/truetype/FiraSans/ \
&& cp Fira*/OTF/Fira* /usr/share/fonts/opentype/FiraSans/ \
&& fc-cache -f -v \
&& rm -rf Fira*
WORKDIR /data
VOLUME ["/data"]

0
contrib/getFiraFont.sh → getFiraFont.sh Normal file → Executable file
View File