Skip to content

Commit e74c344

Browse files
committed
Update pythonr image (geocompx#110)
1 parent cf4fbe5 commit e74c344

File tree

1 file changed

+23
-6
lines changed

1 file changed

+23
-6
lines changed

pythonr/Dockerfile

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
99
libxml2-dev \
1010
libtcl8.6 \
1111
libtk8.6 \
12-
# rspatial deps:
13-
libgdal-dev \
14-
libproj-dev \
15-
libudunits2-dev \
16-
libspatialindex-dev \
1712
&& rm -rf /var/lib/apt/lists/*
1813

1914
# Set up locale for R installation
@@ -24,14 +19,36 @@ ENV LC_ALL=C.UTF-8
2419
RUN wget https://github.com/rocker-org/rocker-versioned2/raw/refs/heads/master/scripts/install_R_source.sh
2520
RUN bash install_R_source.sh
2621

22+
RUN apt-get update && apt-get install -y --no-install-recommends \
23+
# rspatial deps:
24+
libgdal-dev \
25+
libproj-dev \
26+
libudunits2-dev \
27+
libspatialindex-dev \
28+
libabsl-dev \
29+
libgeos-dev \
30+
libsqlite3-dev \
31+
libtiff-dev \
32+
libjpeg-dev \
33+
libpng-dev \
34+
zlib1g-dev \
35+
libfontconfig1-dev \
36+
libfreetype6-dev \
37+
build-essential \
38+
cmake \
39+
&& rm -rf /var/lib/apt/lists/*
40+
41+
2742
# Configure rspm
2843
RUN mkdir -p /etc/R
2944
RUN echo 'options(repos = c(CRAN = "https://packagemanager.rstudio.com/all/latest"))' > /etc/R/Rprofile.site
3045
RUN echo 'options(Ncpus = parallel::detectCores())' >> /etc/R/Rprofile.site
3146
# Install sf:
3247
RUN R -e "install.packages('sf', repos = 'https://cloud.r-project.org')"
48+
# Install remotes for GitHub installs:
49+
RUN R -e "install.packages('remotes', repos = 'https://cloud.r-project.org')"
3350
# Install geocompx:
34-
RUN R -e "install.packages('geocompkg', upgrade = TRUE, dependencies = TRUE, force = TRUE, repos = 'https://cloud.r-project.org')"
51+
RUN R -e "remotes::install_github('geocompx/geocompkg')"
3552

3653
# # build the book
3754
# RUN wget https://github.com/geocompx/geocompr/archive/main.zip && \

0 commit comments

Comments
 (0)