Skip to content

Commit

Permalink
updated Dockerfile for R
Browse files Browse the repository at this point in the history
  • Loading branch information
toniher committed Oct 12, 2024
1 parent 26b5c83 commit c9007ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
22 changes: 12 additions & 10 deletions docker/Rscript/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
FROM rocker/r-ver:4
FROM rocker/r-ver:4.4.1

RUN apt-get -y update && apt-get install -y libnlopt-dev zlib1g-dev \
libzmq3-dev libharfbuzz-dev libfribidi-dev libfreetype6-dev libpng-dev \
libtiff5-dev libjpeg-dev build-essential libcurl4-openssl-dev libxml2-dev \
libssl-dev libfontconfig1-dev \
libtiff5-dev libjpeg-dev build-essential libcurl4-gnutls-dev libxml2-dev \
libssl-dev libfontconfig1-dev cmake \
&& rm -rf /var/lib/apt/lists/*

RUN install2.r --error devtools
COPY deps.R /tmp
RUN Rscript /tmp/deps.R > /tmp/deps.log
RUN install2.r --error igraph ggplot2 nplotr
# RUN Rscript -e "install.packages(c('pbkrtest', 'lme4', 'pbkrtest', 'lme4'), repos='http://cran.us.r-project.org');"
# RUN Rscript -e "install.packages(c('ggpubr', 'cowplot', 'rshape2'), repos='http://cran.us.r-project.org');"
# devtools::install_github('nathan-russell/hashmap')
ARG REPO=http://cran.us.r-project.org

RUN install2.r -s -e -r ${REPO} remotes
RUN Rscript -e "remotes::install_github('nathan-russell/hashmap')"
RUN install2.r -s -e -r ${REPO} igraph ggplot2
RUN install2.r -s -e -r ${REPO} pbkrtest lme4 pbkrtest lme4
RUN install2.r -s -e -r ${REPO} ggpubr cowplot reshape2 nloptr

RUN rm -rf /tmp/downloaded_packages \
&& strip /usr/local/lib/R/site-library/*/libs/*.so
8 changes: 0 additions & 8 deletions docker/Rscript/deps.R

This file was deleted.

0 comments on commit c9007ae

Please sign in to comment.