Skip to content

Commit fd43fb8

Browse files
committed
Try to get the right version of python working again
1 parent 5accab0 commit fd43fb8

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

pythonr/Dockerfile

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.13-slim-bookworm
1+
FROM ghcr.io/geocompx/python
22

33
# Install R
44
RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -9,6 +9,10 @@ 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+
libspatialindex-dev \
1216
&& rm -rf /var/lib/apt/lists/*
1317

1418
# Set up locale for R installation
@@ -26,3 +30,9 @@ RUN echo 'options(Ncpus = parallel::detectCores())' >> /etc/R/Rprofile.site
2630
# Install geocompx:
2731
RUN R -e "install.packages('geocompkg', upgrade = TRUE, dependencies = TRUE, force = TRUE, repos = c('https://geocompr.r-universe.dev', 'https://mlr-org.r-universe.dev', 'https://cloud.r-project.org'))"
2832

33+
# # build the book
34+
# RUN wget https://github.com/geocompx/geocompr/archive/main.zip && \
35+
# unzip main.zip && \
36+
# mv geocompr-main geocompr && \
37+
# rm main.zip
38+
# RUN Rscript -e 'bookdown::render_book("geocompr", output_format = "bookdown::gitbook", clean = FALSE)'

rocker-rpy/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ ENV PATH=/opt/venv/bin:${PATH}
1010

1111
# Override the python symlink to use the venv Python (not system Python)
1212
RUN ln -sf /opt/venv/bin/python /usr/bin/python
13+
RUN ln -sf /opt/venv/bin/python /bin/python
14+
1315
# Set version of Python that Quarto will use:
1416
ENV QUARTO_PYTHON=/opt/venv/bin/python
1517

0 commit comments

Comments
 (0)