nyanya
commited on
Commit
•
67591e6
1
Parent(s):
02f130d
fix: dckfl
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -64,12 +64,12 @@ RUN curl -s https://api.github.com/repos/gitpod-io/openvscode-server/releases/la
|
|
64 |
# Fetch the latest version of OpenVSCode Server
|
65 |
RUN echo "**** install code-server ****" && \
|
66 |
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/coder/code-server/releases/latest" \
|
67 |
-
| grep
|
68 |
| cut -d : -f 2,3 \
|
69 |
-
| tr -d
|
|
|
70 |
mkdir -p /app/code-server && \
|
71 |
-
|
72 |
-
tar xf /tmp/code-server.tar.gz -C /app/code-server --strip-components=1 && \
|
73 |
echo "**** clean up ****" && \
|
74 |
apt-get clean && \
|
75 |
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
|
|
64 |
# Fetch the latest version of OpenVSCode Server
|
65 |
RUN echo "**** install code-server ****" && \
|
66 |
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/coder/code-server/releases/latest" \
|
67 |
+
| grep "browser_download_url.*linux-amd64.tar.gz" \
|
68 |
| cut -d : -f 2,3 \
|
69 |
+
| tr -d \" \
|
70 |
+
| wget -qi - -O /tmp/code-server.tar.gz && \
|
71 |
mkdir -p /app/code-server && \
|
72 |
+
tar -xzf /tmp/code-server.tar.gz -C /app/code-server --strip-components=1 && \
|
|
|
73 |
echo "**** clean up ****" && \
|
74 |
apt-get clean && \
|
75 |
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|