From d02624534fe2b32323bce9245909eef40e89c1fd Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Fri, 15 Dec 2023 20:14:08 -0800 Subject: [PATCH 1/2] Bump base image - Bump otter-grader too --- Dockerfile | 2 +- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0a63236..099cab2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM rocker/binder:4.3.1 +FROM rocker/binder:4.3.2 USER root diff --git a/requirements.txt b/requirements.txt index 2d54ab9..44d312e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,4 @@ nbgitpuller==1.2.0 jupyter-shiny-proxy==1.1 # Based on request from Nathan Taback -otter-grader==4.3.4 +otter-grader==5.2.2 From e131ab9c6c0cf2d6438a72aa30be74f05157c7a9 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Thu, 21 Dec 2023 15:25:10 -0800 Subject: [PATCH 2/2] Don't install python packages as root No longer needed, as /opt/venv is owned by non-root now --- Dockerfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 099cab2..0f43c4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,8 @@ FROM rocker/binder:4.3.2 -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 \