Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Lextuga007 committed Jun 14, 2024
1 parent c301328 commit d22320d
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,31 @@ 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

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 install.r remotes rmarkdown quarto tidyverse sf \
&& installGithub.r rundel/checklist
# stuff for the tmaptools/rmapshaper/geojsonio etc stack:
RUN apt-get install -y libv8-3.14-dev libprotobuf-dev protobuf-compiler libcairo2-dev
RUN add-apt-repository -y ppa:opencpu/jq
RUN apt-get update
RUN apt-get install -y libjq-dev

RUN Rscript -e 'install.packages(c("sf", "lwgeom", "covr", "raster"), dependencies = TRUE, repos = "https://cloud.r-project.org")'
RUN git clone https://github.com/r-spatial/sf.git
RUN R CMD build --no-build-vignettes sf
RUN R CMD INSTALL sf_*tar.gz

RUN apt-get install -y pandoc pandoc-citeproc

RUN R CMD check --as-cran sf_*tar.gz

RUN R -q -e 'install.packages("remotes"); remotes::install_github("rundel/checklist")'

RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN R -q -e 'install.packages("remotes"); remotes::install_github("rundel/checklist")'

CMD ["bash"]

0 comments on commit d22320d

Please sign in to comment.