FROM ubuntu:18.04 # I chose ubuntu as basis as it is my actual system MAINTAINER Cord Hockemeyer WORKDIR /install ADD . /install ENV TZ=Europe/Vienna RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # Installing some needed ubuntu packages including R RUN apt update && apt install -y apt && apt dist-upgrade -y && apt install -y software-properties-common libgslcblas0 libgsl-dev mesa-common-dev libglu1-mesa-dev gnupg jags vim RUN apt install -y gdebi-core curl openssl libssl-dev libcurl4-openssl-dev libcairo2 ed libcairo2-dev libxml2-dev libxt-dev libv8-dev RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/" >>/etc/apt/sources.list RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-key E084DAB9 RUN apt update && apt install -y r-base r-base-core r-base-dev r-base-html r-doc-html r-recommended # The following command assumes that only the current RStudio Server and # Shiny Server installation packages are located in this directory! # # Make sure that the installation order is the same as in the host system # if you want to share the shiny-server web directory. Otherwise there will # be problems with access rights. RUN gdebi -n shiny*.deb && gdebi -n rstudio*.deb EXPOSE 3838 8787 CMD ["/install/start-servers"]