Skip to content

Commit

Permalink
base: Update latest Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
benz0li committed Feb 18, 2024
1 parent 3a18ba9 commit 7c05e67
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,9 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 \
nbclassic \
nbconvert \
python-lsp-server[all] \
## Fix https://github.com/jupyterhub/jupyter-server-proxy/issues/445
&& sed -i 's/subprotocols=self\.subprotocols/subprotocols=self\.subprotocols if self\.subprotocols else None/g' \
/usr/local/lib/python*/*-packages/jupyter_server_proxy/handlers.py \
## Include custom fonts
&& sed -i 's|</head>|<link rel="preload" href="{{page_config.fullStaticUrl}}/assets/fonts/MesloLGS-NF-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous"></head>|g' /usr/local/share/jupyter/lab/static/index.html \
&& sed -i 's|</head>|<link rel="preload" href="{{page_config.fullStaticUrl}}/assets/fonts/MesloLGS-NF-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous"></head>|g' /usr/local/share/jupyter/lab/static/index.html \
Expand Down

0 comments on commit 7c05e67

Please sign in to comment.