From 312db28f1799980a8894bfb53323d2331a5f0124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rok=20Ro=C5=A1kar?= Date: Thu, 20 Jun 2024 13:53:00 +0200 Subject: [PATCH] chore: make default install directory user-owned --- docker/matlab-jupyter/Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docker/matlab-jupyter/Dockerfile b/docker/matlab-jupyter/Dockerfile index 14762603..9f1962ec 100644 --- a/docker/matlab-jupyter/Dockerfile +++ b/docker/matlab-jupyter/Dockerfile @@ -57,8 +57,7 @@ COPY --from=renku_base /renku/bashrc /renku/bashrc # set permissions of the R library directory to be editable by NB_USER RUN chown 1000:100 /opt/conda && \ - mkdir /usr/share/matlab && \ - chown 1000:1000 /usr/share/matlab && \ + chown -R 1000:1000 /opt/matlab/R2024a && \ # this hack lets some of the setup from the base renku image work here ln -s /home/${NB_USER} /home/jovyan @@ -68,9 +67,8 @@ USER ${NB_USER} RUN echo ". ${CONDA_PATH}/etc/profile.d/conda.sh" >> ~/.bashrc && \ echo "conda activate base" >> ~/.bashrc && \ cat /renku/bashrc >> $HOME/.bashrc && \ - echo "source ~/.bashrc" >> ~/.bash_profile - -RUN pip install --no-cache-dir "jupyter-matlab-proxy" + echo "source ~/.bashrc" >> ~/.bash_profile && \ + pip install --no-cache-dir "jupyter-matlab-proxy" ENTRYPOINT [ "/tini", "--", "/entrypoint.sh" ] CMD [ "jupyter", "server", "--ip", "0.0.0.0" ]