From 761fa4028edb3691673d0b8e5fa0c90c9b4e3bff Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 17 Oct 2023 12:21:18 +0530 Subject: [PATCH] Run symlink commands as root --- images/base-notebook/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/images/base-notebook/Dockerfile b/images/base-notebook/Dockerfile index 35387917ef..66f8e9a572 100644 --- a/images/base-notebook/Dockerfile +++ b/images/base-notebook/Dockerfile @@ -58,14 +58,14 @@ CMD ["start-notebook"] COPY start-notebook start-singleuser /usr/local/bin/ COPY jupyter_server_config.py docker_healthcheck.py /etc/jupyter/ -# Symlink scripts to their older .sh variants for backwards compatibility -RUN ln -s /usr/local/bin/start-notebook /usr/local/bin/start-notebook.sh -RUN ln -s /usr/local/bin/start-jupyterhub /usr/local/bin/start-jupyterhub.sh - # Fix permissions on /etc/jupyter as root USER root RUN fix-permissions /etc/jupyter/ +# Symlink scripts to their older .sh variants for backwards compatibility +RUN ln -s /usr/local/bin/start-notebook /usr/local/bin/start-notebook.sh +RUN ln -s /usr/local/bin/start-jupyterhub /usr/local/bin/start-jupyterhub.sh + # HEALTHCHECK documentation: https://docs.docker.com/engine/reference/builder/#healthcheck # This healtcheck works well for `lab`, `notebook`, `nbclassic`, `server` and `retro` jupyter commands # https://github.com/jupyter/docker-stacks/issues/915#issuecomment-1068528799