From 1d6cf20230e9f07c54358c039b5120071a79bb62 Mon Sep 17 00:00:00 2001 From: Lextuga007 Date: Mon, 17 Jun 2024 13:02:13 +0100 Subject: [PATCH] Reverted to DukeStatScie to help with getting sf package to install --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33e1110..c5ab012 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,20 +1,20 @@ -FROM rocker/r2u +FROM rocker/r-ubuntu:22.04 ADD Rprofile.site /usr/lib/R/etc/Rprofile.site -RUN apt-get update \ - && apt-get upgrade -y +RUN apt-get install -y --no-install-recommends \ + libudunits2-dev libgdal-dev libgeos-dev \ + libproj-dev pandoc libmagick++-dev \ + libglpk-dev libnode-dev \ + wget git rsync \ + && sed 's/value="1GiB"/value="8GiB"/1' /etc/ImageMagick-6/policy.xml > /etc/ImageMagick-6/policy.xml RUN wget https://github.com/quarto-dev/quarto-cli/releases/download/v1.4.550/quarto-1.4.550-linux-amd64.deb \ && DEBIAN_FRONTEND=noninteractive apt install ./quarto-*-linux-amd64.deb \ && rm quarto-*-linux-amd64.deb - -RUN apt-get update && \ - apt-get install -y libproj22 libudunits2.so.0 libgdal30 && \ - rm -rf /var/lib/apt/lists/* -RUN R -q -e 'install.packages("remotes"); remotes::install_github("rundel/checklist")' -RUN R -q -e 'install.packages("remotes"); remotes::install_github("r-spatial/sf")' +RUN install.r devtools rmarkdown quarto tidyverse \ + && installGithub.r rundel/checklist RUN apt-get clean \ && rm -rf /var/lib/apt/lists/*