Install python3 and other dependencies

This commit is contained in:
Andrea Dell'Amico 2023-04-10 17:19:23 +02:00
parent 6fcea7f0ae
commit 86dd7cf0bf
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 11 additions and 4 deletions

View File

@ -6,8 +6,13 @@ LABEL org.d4science.image.licenses="EUPL-1.2" \
org.d4science.image.authors="Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>"
ENV DEBIAN_FRONTEND noninteractive
# Some R dependencies
RUN apt-get update && apt-get install -y \
# Upgrade, install some R dependencies and base python3
RUN apt-get update --yes && \
apt-get dist-upgrade --yes && \
apt-get install --yes --no-install-recommends \
python3 \
python3-pip \
curl \
jags \
libxml2 \
git \
@ -16,6 +21,8 @@ RUN apt-get update && apt-get install -y \
libsodium-dev \
libudunits2-dev \
libfontconfig1-dev \
librdf0 \
librdf0-dev \
netcdf-bin \
libcairo2-dev \
libharfbuzz-dev \
@ -57,8 +64,7 @@ RUN for cr in `cat /tmp/jupyter-image-r-cran-pkgs.txt` ; do \
# From github
ADD https://code-repo.d4science.org/gCubeSystem/r-packages-list/raw/branch/master/r_github_pkgs.txt /tmp
RUN mkdir -p /etc/R
RUN echo "GITHUB_PAT=$GITHUB_PAT" >> /etc/R/Renviron.site
RUN echo "GITHUB_PAT=$GITHUB_PAT" >> /usr/local/lib/R/etc/Renviron.site
#RUN for g in `cat /tmp/r_github_pkgs.txt` ; do \
# Rscript --slave --no-site-file --no-init-file --no-save --no-restore-history \
# -e " require(devtools); devtools::install_github('$g')" ; done
@ -69,6 +75,7 @@ RUN installGithub.r -d TRUE -u FALSE -r https://packagemanager.rstudio.com/all/_
RUN installGithub.r -d TRUE -u FALSE -r https://packagemanager.rstudio.com/all/__linux__/focal/latest sofia-tsaf/SOFIA
RUN installGithub.r -d TRUE -u FALSE -r https://packagemanager.rstudio.com/all/__linux__/focal/latest jabbamodel/JABBA
RUN installGithub.r -d TRUE -u FALSE -r https://packagemanager.rstudio.com/all/__linux__/focal/latest tokami/lbmsmt
RUN installGithub.r -d TRUE -u FALSE -r https://packagemanager.rstudio.com/all/__linux__/focal/latest james-thorson/FishLife
# Ensure that we remove the source packages
RUN rm -fr /tmp/downloaded_packages/*