From 5d10885923a756d26d3610d51fb730163612d9ba Mon Sep 17 00:00:00 2001 From: "Tiffany A. Timbers" Date: Thu, 10 Feb 2022 10:53:10 -0800 Subject: [PATCH] Trying to make root user earlier --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0fced7b..7759880 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM continuumio/miniconda3 # Install Jupyter, JupterLab, R & the IRkernel -RUN conda install --yes --quiet --channel conda-forge \ +RUN conda install --yes --quiet -c conda-forge \ jupyter \ jupyterlab \ r-base \ @@ -10,20 +10,20 @@ RUN conda install --yes --quiet --channel conda-forge \ # Install JupyterLab Git Extension RUN pip install jupyterlab-git +USER root + # Create working directory for mounting volumes RUN mkdir -p /opt/notebooks # Make port 8888 available for JupyterLab EXPOSE 8888 -USER root - # Install Git, the nano-tiny text editor and less (needed for R help) RUN apt-get update --yes && \ apt-get install --yes --no-install-recommends \ - git - #nano-tiny \ - #less + git \ + nano-tiny \ + less # Copy JupyterLab start-up script into container COPY start-notebook.sh /usr/local/bin/