Skip to content

Commit 323a902

Browse files
committed
base: Update latest Dockerfile
- jupyterhub/jupyter-server-proxy#445
1 parent 6af89a5 commit 323a902

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

base/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,9 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 \
415415
nbclassic \
416416
nbconvert \
417417
python-lsp-server[all] \
418+
## Fix https://github.com/jupyterhub/jupyter-server-proxy/issues/445
419+
&& sed -i 's/subprotocols=self\.subprotocols/subprotocols=self\.subprotocols if self\.subprotocols else None/g' \
420+
/usr/local/lib/python*/*-packages/jupyter_server_proxy/handlers.py \
418421
## Include custom fonts
419422
&& 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 \
420423
&& 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 \

0 commit comments

Comments
 (0)