diff --git a/docker/Dockerfile b/docker/Dockerfile index 7f5d09a..5cfe18e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -125,6 +125,7 @@ RUN groupadd -r briefer \ && useradd -r -g jupyteruser jupyteruser \ && mkdir -p /home/jupyteruser \ && chown -R jupyteruser:jupyteruser /home/jupyteruser \ + && chown -R jupyteruser:jupyteruser /app/jupyter/venv \ && chmod 700 /home/jupyteruser diff --git a/docker/setup/jupyter.py b/docker/setup/jupyter.py index 1568daf..f11907c 100644 --- a/docker/setup/jupyter.py +++ b/docker/setup/jupyter.py @@ -27,6 +27,7 @@ def get_config(): def run_jupyter(cfg): env = os.environ.copy() env["JUPYTER_TOKEN"] = cfg["JUPYTER_TOKEN"] + env["PATH"] = "/app/jupyter/venv/bin:" + env.get("PATH", "") jupyter = subprocess.run([ "/app/jupyter/venv/bin/jupyter",