File tree 4 files changed +26
-6
lines changed
root/etc/services.d/code-server 4 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -14,25 +14,45 @@ RUN \
14
14
echo "**** install dependencies ****" && \
15
15
apt-get update && \
16
16
apt-get install -y \
17
+ gnupg && \
18
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - && \
19
+ echo 'deb https://deb.nodesource.com/node_12.x bionic main' \
20
+ > /etc/apt/sources.list.d/nodesource.list && \
21
+ apt-get update && \
22
+ apt-get install -y \
23
+ build-essential \
17
24
git \
18
25
jq \
26
+ libx11-dev \
27
+ libxkbfile-dev \
28
+ libsecret-1-dev \
19
29
nano \
20
30
net-tools \
31
+ nodejs \
32
+ pkg-config \
21
33
sudo && \
22
34
echo "**** install code-server ****" && \
23
35
if [ -z ${CODE_RELEASE+x} ]; then \
24
36
CODE_RELEASE=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/latest" \
25
37
| awk '/tag_name/{print $4;exit}' FS='[""]' ); \
26
38
fi && \
27
- CODE_URL=$(curl -sX GET "https://api.github.com/repos/cdr/code-server/releases/tags/${CODE_RELEASE}" \
28
- | jq -r '.assets[] | select(.browser_download_url | contains("linux-amd64")) | .browser_download_url' ) && \
29
39
mkdir -p /app/code-server && \
30
40
curl -o \
31
41
/tmp/code.tar.gz -L \
32
- "${CODE_URL} " && \
42
+ "https://github.com/cdr/code-server/archive/${CODE_RELEASE}.tar.gz " && \
33
43
tar xzf /tmp/code.tar.gz -C \
34
44
/app/code-server --strip-components=1 && \
45
+ cd /app/code-server && \
46
+ npm install --unsafe-perm -g code-server && \
47
+ npm prune --production && \
35
48
echo "**** clean up ****" && \
49
+ apt-get purge --auto-remove -y \
50
+ build-essential \
51
+ pkg-config \
52
+ libx11-dev \
53
+ libxkbfile-dev \
54
+ libsecret-1-dev && \
55
+ apt-get clean && \
36
56
rm -rf \
37
57
/tmp/* \
38
58
/var/lib/apt/lists/* \
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
234
234
235
235
## Versions
236
236
237
- * ** 17.05.20:** - Fixes for breaking changes in 3.3.0.
237
+ * ** 17.05.20:** - Fixes for breaking changes in 3.3.0. Install with npm.
238
238
* ** 29.04.20:** - Update start arguments.
239
239
* ** 01.04.20:** - Structural changes required for v3.
240
240
* ** 17.01.20:** - Fix artifact url retrieval from github.
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ app_setup_block: |
65
65
66
66
# changelog
67
67
changelogs :
68
- - { date: "17.05.20:", desc: "Fixes for breaking changes in 3.3.0." }
68
+ - { date: "17.05.20:", desc: "Fixes for breaking changes in 3.3.0. Install with npm. " }
69
69
- { date: "29.04.20:", desc: "Update start arguments." }
70
70
- { date: "01.04.20:", desc: "Structural changes required for v3." }
71
71
- { date: "17.01.20:", desc: "Fix artifact url retrieval from github." }
Original file line number Diff line number Diff line change 9
9
10
10
exec \
11
11
s6-setuidgid abc \
12
- /app/code-server /bin/code-server \
12
+ /usr /bin/code-server \
13
13
--bind-addr 0.0.0.0:8443 \
14
14
--user-data-dir /config/data \
15
15
--extensions-dir /config/extensions \
You can’t perform that action at this time.
0 commit comments