Skip to content

Commit

Permalink
Don't remove home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Jul 22, 2024
1 parent 0bbe0b1 commit 48b3990
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ USER root
COPY ./before-notebook.d/* /usr/local/bin/before-notebook.d/
RUN fix-permissions "${CONDA_DIR}"

# REMOVE HOME
RUN find /home/${NB_USER}/ -delete
# Remove content of $HOME
# '-mindepth=1' ensures that we do not remove the home directory itself.
RUN find /home/${NB_USER}/ -mindepth 1 -delete

WORKDIR "/home/${NB_USER}"
RUN fix-permissions "/home/${NB_USER}"
USER ${NB_USER}
WORKDIR "/home/${NB_USER}"

0 comments on commit 48b3990

Please sign in to comment.