From dd5c5d66360a724a44b34bc4b80305104ef67f3f Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Thu, 2 Nov 2023 14:31:26 +0530 Subject: [PATCH] Install python packages as root --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 466bad3..0a63236 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,14 @@ FROM rocker/binder:4.3.1 +USER root + +# Install python packages as root, since that's what is done upstream +# This may change soon https://github.com/rocker-org/rocker-versioned2/issues/670 COPY requirements.txt /tmp/requirements.txt RUN pip install --no-cache -r /tmp/requirements.txt +USER ${NB_USER} + # Install learnr and other requested packages in https://2i2c.freshdesk.com/a/tickets/741 # mosaic installed per https://2i2c.freshdesk.com/a/tickets/973 RUN install2.r --skipinstalled \