From 40470ceb0cc5f3ba23c40d4dc9f6030f3e5d8048 Mon Sep 17 00:00:00 2001 From: Ganesh Gore Date: Thu, 2 Feb 2023 15:49:21 -0700 Subject: [PATCH 1/2] Removed duplicate user creation --- Dockerfile | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 28094b21b..f052ae613 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,18 +14,13 @@ ENV USER ${NB_USER} ENV NB_UID ${NB_UID} ENV HOME /home/${NB_USER} -RUN adduser --disabled-password \ - --gecos "Default user" \ - --uid ${NB_UID} \ - ${NB_USER} - -USER root RUN chown -R ${NB_UID} ${HOME} RUN chown -R ${NB_UID} /opt/openfpga USER ${NB_USER} ENV PATH $PATH:/home/${NB_USER}/.local/bin +RUN python3 -m pip install --upgrade pip RUN python3 -m pip install --user --no-cache-dir notebook RUN python3 -m pip install --user --no-cache-dir jupyterlab RUN python3 -m pip install --user --no-cache-dir jupyterhub From 8089fd9e3c5258eaedb76827e28982125e4a3d8c Mon Sep 17 00:00:00 2001 From: Ganesh Gore Date: Thu, 2 Feb 2023 16:12:53 -0700 Subject: [PATCH 2/2] Changed work directory of binder run --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index f052ae613..3c9a13e4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,7 @@ RUN npm install @jupyterlab/server-proxy RUN jupyter serverextension enable --py jupyter_server_proxy RUN jupyter labextension install @jupyterlab/server-proxy RUN jupyter lab build +WORKDIR /opt/openfpga/ RUN git reset --hard HEAD # Set up terminal