Skip to content

Commit d2acff2

Browse files
committed
base: Update latest Dockerfile
- jupyterhub/jupyter-server-proxy#445
1 parent 83ed315 commit d2acff2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

base/latest.Dockerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,8 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 \
242242
nbconvert \
243243
python-lsp-server[all] \
244244
## Fix https://github.com/jupyterhub/jupyter-server-proxy/issues/445
245-
&& pyFile="$(echo /usr/local/lib/python*/*-packages/jupyter_server_proxy/handlers.py)" \
246245
&& sed -i 's/subprotocols=self\.subprotocols/subprotocols=self\.selected_subprotocol/g' \
247-
"$pyFile" \
248-
&& if $(grep -q subprotocols=self.selected_subprotocol "$pyFile"); then \
249-
sed -i '/def select_subprotocol/{:a;N;s/\n[[:blank:]]\+.*//;ta;!P;D}' \
250-
"$pyFile"; \
251-
fi \
246+
/usr/local/lib/python*/*-packages/jupyter_server_proxy/handlers.py \
252247
## Include custom fonts
253248
&& 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 \
254249
&& 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)