rstudio-d4science/Dockerfile

22 lines
934 B
Docker

FROM d4science/rstudio-base:2023-03-R4-2
LABEL org.d4science.image.licenses="EUPL-1.2" \
org.d4science.image.source="https://code-repo.d4science.org/gCubeSystem/rstudio-d4science" \
org.d4science.image.vendor="D4Science <https://www.d4science.org>" \
org.d4science.image.authors="Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>"
# R and python3 packages required by wb3 ecosystem https://support.d4science.org/issues/26459
COPY wb3-install2r-packages.txt /rocker_scripts
RUN for f in `cat //rocker_scripts/wb3-install2r-packages.txt` ; do install2.r --error --skipinstalled --ncpus -1 $f || exit 1 ; done
RUN pip3 install \
numpy \
mbtr \
pandas
# Rstudio settings
COPY rsession.conf /etc/rstudio/rsession.conf
RUN chmod 0644 /etc/rstudio/rsession.conf
RUN curl -o "${R_HOME}/etc/Rprofile.site" "https://code-repo.d4science.org/gCubeSystem/rstudio-rprofile/raw/branch/master/jupyter-Rprofile.site"