Skip to content

Commit

Permalink
Run symlink commands as root
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Oct 17, 2023
1 parent a6f38ae commit 761fa40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions images/base-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 761fa40

Please sign in to comment.