From 75946611956069fd6cdebe6a9e60bcd313a14ac4 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Thu, 28 Dec 2023 22:32:49 -0800 Subject: [PATCH] Install python packages as root Non-root package installation still does not actually work --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d35246e..242c200 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,11 +5,13 @@ FROM rocker/binder:4.3.2 ENV VIRTUAL_ENV=/opt/venv ENV PATH=${VIRTUAL_ENV}/bin:${PATH} -RUN id && ls -la ${VIRTUAL_ENV} +USER root 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 \