Skip to content

Commit c9ae0d1

Browse files
committed
Attempt to install Python deps in global install (failed)
1 parent 4b3eaa2 commit c9ae0d1

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

rocker-rpy/Dockerfile

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
FROM ghcr.io/geocompx/minimal
22

3-
# Use Python already provisioned by the base image virtualenv (/opt/venv).
4-
# Do not reinstall Python; ensure the venv python is preferred and 'python' exists.
5-
RUN /rocker_scripts/install_python.sh
6-
7-
# Prefer the venv python and put its bin on PATH so reticulate picks it up.
8-
ENV RETICULATE_PYTHON=/opt/venv/bin/python
9-
ENV PATH=/opt/venv/bin:${PATH}
10-
113
# 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/*
4+
RUN apt-get update && apt-get install -y --no-install-recommends python-is-python3 python3-pip \
5+
&& rm -rf /var/lib/apt/lists/*
146

15-
# Optionally install project requirements into the existing venv if desired:
16-
RUN /opt/venv/bin/pip install -r https://github.com/geocompx/geocompy/raw/refs/heads/main/requirements.txt
7+
# Install project requirements into the existing venv if desired:
8+
RUN python3 -m pip install -r https://github.com/geocompx/geocompy/raw/refs/heads/main/requirements.txt --break-system-packages

0 commit comments

Comments
 (0)