Skip to content
Snippets Groups Projects
Commit 5815d711 authored by OTT Oceane's avatar OTT Oceane
Browse files

Doker

parent 6708d646
No related branches found
No related tags found
No related merge requests found
from rocker/rstudio:4.1.3
RUN apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
libssl-dev libssh2-1-dev \
libxml2-dev zlib1g-dev \
&& \
R -e "install.packages(c('devtools'))"
# Update the system and install necessary libraries for R packages
RUN apt-get update && apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libxt-dev \
libgit2-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install other R
RUN R -e "install.packages(c('plyr', 'BiocManager'), repos='https://cran.biotools.fr')" \
&& R -e "BiocManager::install(c('snpStats', 'SNPRelate'))"
# Expose the RStudio Server port
EXPOSE 8787
# Start RStudio Server
CMD ["/init"]
Bootstrap: docker
From: rocker/rstudio:4.1.3
%post
# Update the system and install necessary libraries for building R packages
apt-get update && \
apt-get install -y \
libcurl4-openssl-dev \
libssl-dev \
libssh2-1-dev \
libxml2-dev \
libxt-dev \
libgit2-dev \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Install necessary R packages
R -e "install.packages(c('devtools', 'plyr', 'BiocManager'), repos='https://cran.biotools.fr')"
# Install Bioconductor packages
R -e "BiocManager::install(c('snpStats', 'SNPRelate'))"
# Install GenABEL.data from the CRAN archive
R -e "install.packages('https://cran.r-project.org/src/contrib/Archive/GenABEL.data/GenABEL.data_1.0.0.tar.gz', repos=NULL, type='source')"
# Install the archived GenABEL package from the CRAN archive
R -e "install.packages('https://cran.r-project.org/src/contrib/Archive/GenABEL/GenABEL_1.8-0.tar.gz', repos=NULL, type='source')"
R -e 'install.packages("genetics")'
R -e "install.packages('https://cran.r-project.org/src/contrib/Archive/LDheatmap/LDheatmap_1.0-6.tar.gz', repos=NULL, type='source')"
%environment
# Set R library paths if necessary
export R_LIBS_USER=/usr/local/lib/R/site-library
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment