Skip to content

Commit

Permalink
Don't install python packages as root
Browse files Browse the repository at this point in the history
No longer needed, as /opt/venv is owned by non-root now
  • Loading branch information
yuvipanda committed Dec 21, 2023
1 parent d026245 commit e131ab9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down

0 comments on commit e131ab9

Please sign in to comment.