diff --git a/base/conf/jupyter/etc/jupyter/jupyter_server_config.py b/base/conf/jupyter/etc/jupyter/jupyter_server_config.py index 5269c78f8a4d17a2df7249ef2a1e5925f18debab..bc03f5a87c3d989d18cd6c87eda67a4ba0e87caf 100644 --- a/base/conf/jupyter/etc/jupyter/jupyter_server_config.py +++ b/base/conf/jupyter/etc/jupyter/jupyter_server_config.py @@ -11,7 +11,6 @@ from jupyter_core.paths import jupyter_data_dir c = get_config() # noqa: F821 # type: ignore c.ServerApp.ip = "0.0.0.0" -c.ServerApp.port = 8888 #c.ServerApp.open_browser = False # https://github.com/jupyter/notebook/issues/3130 diff --git a/base/latest.Dockerfile b/base/latest.Dockerfile index 87253eb9d05a8f119bd3fd7fd5a2262ce0030e9f..cb455f88ac7ce991f11c9c64ad740c117a29ec94 100644 --- a/base/latest.Dockerfile +++ b/base/latest.Dockerfile @@ -500,7 +500,10 @@ RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master COPY --from=files /files / COPY --from=files /files/var/backups/skel ${HOME} -EXPOSE 8888 +ARG JUPYTER_PORT=8888 +ENV JUPYTER_PORT=${JUPYTER_PORT} + +EXPOSE $JUPYTER_PORT ## Configure container startup ENTRYPOINT ["tini", "-g", "--", "start.sh"]