ENV HOME /root RUN /etc/my_init.d/00_regen_ssh_host_keys.sh
## Install an SSH of your choice. ADD mykey.pub /tmp/your_key RUN cat /tmp/your_key >> /root/.ssh/authorized_keys \ && chmod 600 /root/.ssh/authorized_keys \ && chmod 600 /root/.ssh/authorized_keys && rm -f /tmp/your_key
## apt-get update RUN sed -i~ -e 's/archive.ubuntu.com/ftp.jaist.ac.jp/' /etc/apt/sources.list \ && apt-get update
## Japanese Environment RUN DEBIAN_FRONTEND=noninteractive apt-get install -y language-pack-ja ENV LANG ja_JP.UTF-8 RUN update-locale LANG=ja_JP.UTF-8 RUN mv /etc/localtime /etc/localtime.org RUN ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
## Development Environment ENV EDITOR vim RUN update-alternatives --set editor /usr/bin/vim.basic RUN DEBIAN_FRONTEND=noninteractive \ apt-get install -y git wget curl unzip
## Install R RUN echo'deb http://cran.rstudio.com/bin/linux/ubuntu trusty/' > /etc/apt/sources.list.d/r.list && \ apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9 && \ apt-get update RUN DEBIAN_FRONTEND=noninteractive apt-get install -y r-base fonts-takao
## RStudio Server RUN DEBIAN_FRONTEND=noninteractive apt-get install -y gdebi-core libapparmor1 libcurl4-openssl-dev RUN wget http://download2.rstudio.org/rstudio-server-0.98.953-amd64.deb && \ gdebi -n rstudio-server-0.98.953-amd64.deb && \ rm rstudio-server-*-amd64.deb RUN useradd -m rstudio && \ echo"rstudio:rstudio" | chpasswd
ADD sv /etc/service
## Use baseimage-docker's init system. CMD ["/sbin/my_init"]
## Clean up APT when done. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*