Skip to content

Conversation

@minrk
Copy link
Contributor

@minrk minrk commented Feb 14, 2023

Reduces image size by hundreds of MB by:

  • excluding .git
  • COPY --chown instead of two-step COPY/RUN chown which doubles size in image

Hacks a fix for too-new jupyterlab, jupyter-server and friends by replacing jupyter-notebook with jupyer-lab. This is really a problem BinderHub/repo2docker need to fix.

COPY/RUN chown doubles the size of the repo in the image

also make sure NB_USER is not empty and present in system info
BinderHub forces a launch of the legacy jupyter-notebook server,
but our base image has upgraded jupyterlab and jupyter-server to a version that doesn't support it

the alternative would be to pin-down jupyter server and everything using it
@minrk
Copy link
Contributor Author

minrk commented Feb 14, 2023

@jorgensd jorgensd merged commit 5d42d84 into jorgensd:dokken/jupyterbook Feb 14, 2023
@minrk minrk deleted the hack-jupyter-server branch February 14, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants