File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ if [ -n "$apt" ]; then
9
9
apt-get install --no-install-recommends -y \
10
10
bash \
11
11
build-essential \
12
+ gnupg \
13
+ ca-certificates \
12
14
curl \
13
15
git \
14
16
g++ \
@@ -23,9 +25,14 @@ if [ -n "$apt" ]; then
23
25
ninja-build \
24
26
automake \
25
27
autoconf \
26
- libtool \
27
- nodejs \
28
- npm
28
+ libtool
29
+
30
+ # install latest nodejs
31
+ mkdir -p /etc/apt/keyrings
32
+ curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
33
+ echo " deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
34
+ apt-get update -qq
35
+ apt-get install -y --no-install-recommends nodejs
29
36
fi
30
37
31
38
# Alpine Linux
You can’t perform that action at this time.
0 commit comments