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 17, 2024
1 parent 83ed315 commit d2acff2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions base/latest.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,8 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 \
nbconvert \
python-lsp-server[all] \
## Fix https://github.com/jupyterhub/jupyter-server-proxy/issues/445
&& pyFile="$(echo /usr/local/lib/python*/*-packages/jupyter_server_proxy/handlers.py)" \
&& sed -i 's/subprotocols=self\.subprotocols/subprotocols=self\.selected_subprotocol/g' \
"$pyFile" \
&& if $(grep -q subprotocols=self.selected_subprotocol "$pyFile"); then \
sed -i '/def select_subprotocol/{:a;N;s/\n[[:blank:]]\+.*//;ta;!P;D}' \
"$pyFile"; \
fi \
/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 d2acff2

Please sign in to comment.