From be90587e4819b357b8b8fba8c3e9990f7fa861d9 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Mon, 18 May 2015 18:13:26 -0500 Subject: [PATCH] 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 --- Dockerfile | 22 ---------------------- contrib/Dockerfile | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 22 deletions(-) delete mode 100644 Dockerfile create mode 100644 contrib/Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index cd2571a..0000000 --- a/Dockerfile +++ /dev/null @@ -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"] diff --git a/contrib/Dockerfile b/contrib/Dockerfile new file mode 100644 index 0000000..c20a947 --- /dev/null +++ b/contrib/Dockerfile @@ -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"]