nyanya
commited on
Commit
•
7f74a5e
1
Parent(s):
beb380a
fix: dckfl
Browse files- Dockerfile +8 -14
Dockerfile
CHANGED
@@ -63,22 +63,16 @@ RUN curl -s https://api.github.com/repos/gitpod-io/openvscode-server/releases/la
|
|
63 |
|
64 |
# Fetch the latest version of OpenVSCode Server
|
65 |
RUN echo "**** install code-server ****" && \
|
66 |
-
|
67 |
| grep 'browser_download_url.*linux-x64.tar.gz"' \
|
68 |
| cut -d : -f 2,3 \
|
69 |
-
| tr -d \") && \
|
70 |
-
|
71 |
-
|
72 |
-
/tmp/code-server.tar.gz -
|
73 |
-
"
|
74 |
-
|
75 |
-
|
76 |
-
echo "**** clean up ****" && \
|
77 |
-
apt-get clean && \
|
78 |
-
rm -rf \
|
79 |
-
/tmp/* \
|
80 |
-
/var/lib/apt/lists/* \
|
81 |
-
/var/tmp/*
|
82 |
|
83 |
# Install Node.js and configurable-http-proxy
|
84 |
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - \
|
|
|
63 |
|
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/cdr/code-server/releases/latest" \
|
67 |
| grep 'browser_download_url.*linux-x64.tar.gz"' \
|
68 |
| cut -d : -f 2,3 \
|
69 |
+
| tr -d '\"') && \
|
70 |
+
mkdir -p /app/code-server && \
|
71 |
+
curl -o /tmp/code-server.tar.gz -L "$CODE_RELEASE" && \
|
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/*
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
|
77 |
# Install Node.js and configurable-http-proxy
|
78 |
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - \
|