Skip to content

Commit f095bab

Browse files
committed
Replace python-is-python3, fix geocompx#107
1 parent 7988bda commit f095bab

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

rocker-rpy/Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ RUN /rocker_scripts/install_python.sh
88
ENV RETICULATE_PYTHON=/opt/venv/bin/python
99
ENV PATH=/opt/venv/bin:${PATH}
1010

11-
# Small helper so the 'python' command exists (doesn't reinstall python itself).
12-
RUN apt-get update && apt-get install -y --no-install-recommends python-is-python3 \
13-
&& rm -rf /var/lib/apt/lists/*
11+
# Override the python symlink to use the venv Python (not system Python)
12+
RUN ln -sf /opt/venv/bin/python /usr/bin/python
1413

1514
# Optionally install project requirements into the existing venv if desired:
1615
RUN /opt/venv/bin/pip install -r https://github.com/geocompx/geocompy/raw/refs/heads/main/requirements.txt

0 commit comments

Comments
 (0)