# Base image FROM ubuntu:16.04 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 RUN apt-get update && apt-get install -y \ xsltproc \ r-base=3.3.2* \ wget \ libxml2-dev \ libcurl4-openssl-dev \ libssl-dev \ subversion \ graphviz RUN Rscript -e 'install.packages(c("knitr", "devtools"), repos="https://cran.rstudio.com/")' RUN Rscript -e 'library(devtools); install_version("XML", "3.98-1.4", repos="https://cran.rstudio.com/")' RUN Rscript -e 'library(devtools); install_version("gridSVG", "1.5-0", repos="https://cran.rstudio.com/")' RUN Rscript -e 'source("https://bioconductor.org/biocLite.R"); biocLite(c("graph", "Rgraphviz"))' RUN Rscript -e 'library(devtools); install_version("classGraph", "0.7-5", repos="https://cran.rstudio.com/")' RUN Rscript -e 'library(devtools); install_github("pmur002/DOM@v0.4")' RUN cd /home && wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 && bunzip2 phantomjs-2.1.1-linux-x86_64.tar.bz2 && tar xvf phantomjs-2.1.1-linux-x86_64.tar