From 22a70896445aa4d450dcc136502979a5e770f45a Mon Sep 17 00:00:00 2001 From: TRON Kelly <t19016063@V-PJ-47-066.salsa.univ-amu.fr> Date: Wed, 23 Oct 2024 14:49:53 +0200 Subject: [PATCH] container --- containers/Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 containers/Dockerfile diff --git a/containers/Dockerfile b/containers/Dockerfile new file mode 100644 index 0000000..54b8e2a --- /dev/null +++ b/containers/Dockerfile @@ -0,0 +1,30 @@ +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"] + -- GitLab