Skip to content

Commit 66f2887

Browse files
committed
Tidy-up pythonr Dockerfile
1 parent 32a4fa3 commit 66f2887

File tree

1 file changed

+1
-51
lines changed

1 file changed

+1
-51
lines changed

pythonr/Dockerfile

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
FROM ghcr.io/geocompx/python
22

3-
# Install R and locales
4-
# Fails on Debian (ubuntu PPA does not support Debian):
5-
# RUN wget https://raw.githubusercontent.com/rocker-org/rocker-versioned2/refs/heads/master/scripts/install_R_ppa.sh
6-
# RUN bash install_R_ppa.sh
7-
# bash -c "$(curl -L https://rstd.io/r-install)"
8-
# Install curl:
3+
# Note: previously this image built on Rocker but install_R_ppa.sh fails on Debian
94
RUN apt-get update && apt-get install -y --no-install-recommends \
105
curl \
116
locales \
@@ -31,51 +26,6 @@ RUN R -e "install.packages('pak')"
3126
# # Install packages with pak (binaries from RSPM)
3227
RUN Rscript -e "pak::pkg_install('sf')"
3328

34-
# RUN wget https://raw.githubusercontent.com/rocker-org/rocker-versioned2/refs/heads/master/scripts/setup_R.sh
35-
# RUN bash setup_R.sh
36-
37-
# RUN wget https://github.com/rocker-org/rocker-versioned2/raw/refs/heads/master/scripts/install_R_source.sh
38-
# RUN bash install_R_source.sh
39-
40-
# RUN apt-get update && apt-get install -y --no-install-recommends \
41-
# # rspatial deps:
42-
# libgdal-dev \
43-
# libproj-dev \
44-
# libudunits2-dev \
45-
# libspatialindex-dev \
46-
# libabsl-dev \
47-
# libgeos-dev \
48-
# libsqlite3-dev \
49-
# libtiff-dev \
50-
# libjpeg-dev \
51-
# libpng-dev \
52-
# zlib1g-dev \
53-
# libfontconfig1-dev \
54-
# libfreetype6-dev \
55-
# build-essential \
56-
# libharfbuzz-dev \
57-
# libfribidi-dev \
58-
# libv8-dev \
59-
# libmagick++-dev \
60-
# cmake \
61-
# && rm -rf /var/lib/apt/lists/*
62-
63-
# # Install ragg and its dependencies for high-quality headless graphics
64-
# RUN R -e "install.packages(c('ragg', 'systemfonts', 'textshaping'))"
65-
66-
# Configure R to use ragg as the default graphics device
67-
# RUN mkdir -p /etc/R && \
68-
# echo "options(repos = c(CRAN = 'https://cloud.r-project.org'))" > /etc/R/Rprofile.site && \
69-
# echo "if (requireNamespace('ragg', quietly = TRUE)) { options(device = ragg::agg_png) }" >> /etc/R/Rprofile.site && \
70-
# echo 'options(Ncpus = parallel::detectCores())' >> /etc/R/Rprofile.site
71-
72-
# # Install sf:
73-
# RUN R -e "install.packages('sf', repos = 'https://cloud.r-project.org')"
74-
# # Install remotes for GitHub installs:
75-
# RUN R -e "install.packages('remotes', repos = 'https://cloud.r-project.org')"
76-
# # Install bookdown for book building:
77-
# RUN R -e "install.packages('bookdown', repos = 'https://cloud.r-project.org')"
78-
# # Install geocompx:
7929
RUN R -e "install.packages('geocompkg', repos = c('https://geocompx.r-universe.dev', 'https://packagemanager.posit.co/cran/__linux__/bookworm/latest'), dependencies = TRUE, force = TRUE)"
8030

8131
# # build the book

0 commit comments

Comments
 (0)