diff --git a/containers/Dockerfile b/containers/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..54b8e2a581f7954957e37925b6de2a8baeb4d2fb --- /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"] +