# Base image FROM pmur002/mplib-shared MAINTAINER Paul Murrell # add CRAN PPA RUN apt-get update && apt-get install -y apt-transport-https RUN echo 'deb https://cloud.r-project.org/bin/linux/ubuntu xenial/' > /etc/apt/sources.list.d/cran.list RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 # Install additional software # R stuff RUN apt-get update && apt-get install -y \ xsltproc \ r-base=3.4* \ libxml2-dev \ libcurl4-openssl-dev \ libssl-dev \ bibtex2html \ subversion # For building the report RUN Rscript -e 'install.packages(c("knitr", "devtools"), repos="https://cran.rstudio.com/")' RUN Rscript -e 'library(devtools); install_version("xml2", "1.1.1", repos="https://cran.rstudio.com/")' RUN apt-get update && apt-get install -y \ texlive-metapost RUN apt-get install -y locales && locale-gen en_US.UTF-8 ENV LANG en_US.UTF-8