Use shim instead of symlink for code CLI (#580)

This commit is contained in:
Felipe Santos 2023-03-05 11:40:46 -03:00 committed by GitHub
parent 428b38c68d
commit 412f92627b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -61,7 +61,6 @@ RUN \
--strip 1 -C /usr/local/lib/code-server \ --strip 1 -C /usr/local/lib/code-server \
\ \
&& ln -s /usr/local/lib/code-server/bin/code-server /usr/local/bin/code-server \ && ln -s /usr/local/lib/code-server/bin/code-server /usr/local/bin/code-server \
&& ln -s /usr/local/lib/code-server/bin/code-server /usr/local/bin/code \
\ \
&& mkdir -p /root/.code-server/extensions \ && mkdir -p /root/.code-server/extensions \
&& uuid=$(uuidgen) \ && uuid=$(uuidgen) \

View file

@ -0,0 +1,3 @@
#!/bin/sh
exec /usr/local/lib/code-server/bin/code-server "${@}"