updated Dockerfile

- moved to contrib/ as it is not strictly needed at top-level
- standardized Dockerfile to what Docker recommends as best practices: each RUN
  command creates a new AUFS layer so it is best to pool commands
This commit is contained in:
Dirk Eddelbuettel 2015-05-18 18:13:26 -05:00
parent 032d69f3d2
commit be90587e48
2 changed files with 28 additions and 22 deletions

View File

@ -1,22 +0,0 @@
FROM ubuntu:trusty
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -q
RUN apt-get install -qy texlive-full
RUN apt-get install -qy python-pygments
RUN apt-get install -qy gnuplot
RUN apt-get install wget
RUN mkdir -p /usr/share/fonts/truetype/FiraSans
RUN mkdir -p /usr/share/fonts/opentype/FiraSans
RUN wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraMono3106.zip"
RUN wget "dev.carrois.com/wordpress/wp-content/uploads/downloads/fira_3_1/FiraSans3106.zip"
RUN unzip FiraSans3106.zip
RUN unzip FiraMono3106.zip
RUN sudo cp /Fira*/WEB/*.ttf /usr/share/fonts/truetype/FiraSans/
RUN sudo cp /Fira*/OTF/Fira* /usr/share/fonts/opentype/FiraSans/
RUN sudo fc-cache -f -v
WORKDIR /data
VOLUME ["/data"]

28
contrib/Dockerfile Normal file
View File

@ -0,0 +1,28 @@
## 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"]