Last active
December 1, 2020 23:28
-
-
Save qykong/8675a41fe21a27de99173b36610d0316 to your computer and use it in GitHub Desktop.
Customized rstudio dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rocker/rstudio | |
RUN /rocker_scripts/install_tidyverse.sh | |
RUN Rscript -e "install.packages(c('cowplot', 'poweRlaw', 'pbmcapply', 'devtools', 'tidyverse', 'data.table', 'bit64', 'nloptr', 'furrr', 'future', 'future.batchtools', 'igraph', 'caret', 'see', 'flexclust', 'ggrepel', 'tsne', 'R.utils', 'Hmisc', 'reticulate'))" | |
RUN apt-get -y update && apt-get -y install libglpk40 | |
RUN Rscript -e "devtools::install_github('behavioral-ds/evently')" | |
RUN Rscript -e "evently::setup_ampl('/home/rstudio')" | |
RUN echo "PATH=$PATH:/home/rstudio/ampl" >> /home/rstudio/.Renviron | |
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8 | |
ENV PATH /opt/conda/bin:$PATH | |
RUN apt-get update --fix-missing && apt-get install -y wget bzip2 ca-certificates \ | |
libglib2.0-0 libxext6 libsm6 libxrender1 \ | |
git mercurial subversion | |
RUN wget --quiet https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh -O ~/anaconda.sh && \ | |
/bin/bash ~/anaconda.sh -b -p /opt/conda && \ | |
rm ~/anaconda.sh && \ | |
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | |
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \ | |
echo "conda activate base" >> ~/.bashrc | |
RUN apt-get install -y curl grep sed dpkg && \ | |
TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` && \ | |
curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb && \ | |
dpkg -i tini.deb && \ | |
rm tini.deb && \ | |
apt-get clean |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment