Verified Commit cd1f3983 authored by Olivier Benz's avatar Olivier Benz
Browse files

Update latest Dockerfile

- Fix https://github.com/coder/code-server/issues/5335
parent d9eb44b3
Pipeline #11611 passed with stages
in 31 minutes and 18 seconds
......@@ -171,6 +171,8 @@ RUN mkdir /opt/code-server \
&& curl -sL https://upload.wikimedia.org/wikipedia/commons/9/9a/Visual_Studio_Code_1.35_icon.svg -o vscode.svg \
## Fix https://github.com/coder/code-server/issues/5335
&& mv lib/vscode/bin/remote-cli/code-server lib/vscode/bin/remote-cli/code-oss \
&& sed -i 's/code-server/code-oss/g' lib/vscode/bin/remote-cli/code-oss \
&& sed -i 's/code-server/code-oss/g' lib/vscode/bin/helpers/browser.sh \
## Include custom fonts
&& sed -i 's|</head>| <link rel="preload" href="{{BASE}}/_static/src/browser/media/fonts/MesloLGS-NF-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous">\n </head>|g' /opt/code-server/lib/vscode/out/vs/code/browser/workbench/workbench.html \
&& sed -i 's|</head>| <link rel="preload" href="{{BASE}}/_static/src/browser/media/fonts/MesloLGS-NF-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous">\n </head>|g' /opt/code-server/lib/vscode/out/vs/code/browser/workbench/workbench.html \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment