File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -19,10 +19,16 @@ RUN mamba clean --all -f -y && \
1919 fix-permissions "${CONDA_DIR}" && \
2020 fix-permissions "/home/${NB_USER}"
2121
22+ COPY start-nb-base.sh /usr/local/bin/
23+ RUN chmod 755 /usr/local/bin/start-nb-base.sh
24+
2225COPY pip.conf /etc/pip.conf
2326
2427COPY ubuntu.sources /etc/apt/sources.list.d
2528
2629USER ${NB_UID}
2730
28- RUN sed -i '/eval "$(conda shell.bash hook)"/c\e xport PATH="/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:$PATH"\n eval "$(conda shell.bash hook)"' ~/.bashrc
31+ RUN sed -i '/eval "$(conda shell.bash hook)"/c\e xport PATH="/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:/opt/conda/condabin:/opt/conda/bin:$PATH"\n eval "$(conda shell.bash hook)"' ~/.bashrc
32+
33+ ENTRYPOINT ["tini" , "-g" , "--" ]
34+ CMD ["/usr/local/bin/start-nb-base.sh" ]
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Copyright (c) Xiang Shi (KevinZonda) & KigLand
3+
4+ set -e
5+
6+ # Check if NB_VAR_BASE_URL is set
7+ if [ -z " $NB_VAR_BASE_URL " ]; then
8+ exec start-notebook.sh
9+ else
10+ exec start-notebook.sh --NotebookApp.base_url=" $NB_VAR_BASE_URL "
11+ fi
You can’t perform that action at this time.
0 commit comments