noob here. I have a dockerised jupyter lab instance where I have a bunch of packages installed for the root user, and now I want to add an additional kernel that has no packages at all (yet). Here’s how I’ve tried to do that:
# SYSTEM SETUP
FROM python:3.11.5-bookworm
ADD requirements/pip /requirements/pip
RUN pip install -r /requirements/pip
RUN mkdir /venv/
&& cd /venv/
&& python -m venv blank
&& /venv/blank/bin/pip install ipykernel
&& /venv/blank/bin/python -m ipykernel install --user --name=blank-env
I expect the root python environment to have all the packages listed in my requirements/pip
file and my blank-env
environment to be empty.
However, when I run jupyter lab
in the docker container, the blank-env
kernel appears to have all of the root packages installed. What am I doing wrong here?