mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2024-11-22 20:15:41 +01:00
move binary to /usr/bin
This commit is contained in:
parent
0d9851b43c
commit
a4102b0c8c
@ -16,8 +16,6 @@ RUN \
|
|||||||
git \
|
git \
|
||||||
net-tools && \
|
net-tools && \
|
||||||
echo "**** install code-server ****" && \
|
echo "**** install code-server ****" && \
|
||||||
mkdir -p \
|
|
||||||
/opt/code-server && \
|
|
||||||
if [ -z ${CODE_RELEASE+x} ]; then \
|
if [ -z ${CODE_RELEASE+x} ]; then \
|
||||||
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
|
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||||
@ -26,7 +24,8 @@ RUN \
|
|||||||
/tmp/code.tar.gz -L \
|
/tmp/code.tar.gz -L \
|
||||||
"https://github.com/cdr/code-server/releases/download/${CODE_RELEASE}/code-server${CODE_RELEASE}-linux-x64.tar.gz" && \
|
"https://github.com/cdr/code-server/releases/download/${CODE_RELEASE}/code-server${CODE_RELEASE}-linux-x64.tar.gz" && \
|
||||||
tar xzf /tmp/code.tar.gz -C \
|
tar xzf /tmp/code.tar.gz -C \
|
||||||
/opt/code-server/ --strip-components=1 && \
|
/usr/bin/ --strip-components=1 \
|
||||||
|
--wildcards code-server*/code-server && \
|
||||||
echo "**** clean up ****" && \
|
echo "**** clean up ****" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/* \
|
/tmp/* \
|
||||||
|
@ -11,7 +11,7 @@ fi
|
|||||||
|
|
||||||
exec \
|
exec \
|
||||||
s6-setuidgid abc \
|
s6-setuidgid abc \
|
||||||
/opt/code-server/code-server \
|
/usr/bin/code-server \
|
||||||
-H \
|
-H \
|
||||||
${PASSARG} \
|
${PASSARG} \
|
||||||
-d /config/data \
|
-d /config/data \
|
||||||
|
Loading…
Reference in New Issue
Block a user