File tree Expand file tree Collapse file tree 2 files changed +16
-23
lines changed Expand file tree Collapse file tree 2 files changed +16
-23
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ RUN mkdir -p /usr/lib/local/lib/python3.10/dist-packages/lldb \
2323RUN apt-get update \
2424 && apt-get install -y \
2525 git \
26- nodejs \
2726 npm \
2827 zip \
2928 curl \
@@ -78,9 +77,20 @@ RUN apt-get update \
7877 file \
7978 && rm -rf /var/lib/apt/lists/*
8079
81- # update node
82- ENV NODE_VERSION 20.9.0
83- ENV NO_UPDATE_NOTIFIER=true
80+ # Remove older version of node & install node 20
81+ RUN cd /etc/apt/sources.list.d && \
82+ rm -f nodesource.list && \
83+ apt --fix-broken install && \
84+ apt update && \
85+ apt-get remove nodejs -y && \
86+ apt-get remove nodejs-doc -y && \
87+ apt-get remove libnode-dev -y
88+
8489RUN cd ~ && \
85- curl -LO https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz && \
86- tar xf node-v${NODE_VERSION}-linux-x64.tar.xz
90+ curl -sL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh && \
91+ bash nodesource_setup.sh && \
92+ apt-get install nodejs -y && \
93+ rm -rf /var/lib/apt/lists/* && \
94+ rm -f nodesource_setup.sh
95+
96+ ENV NO_UPDATE_NOTIFIER=true
Original file line number Diff line number Diff line change @@ -7,20 +7,3 @@ RUN apt-get update \
77 && rm -rf /var/lib/apt/lists/*
88
99ADD rootfs.arm64.tar crossrootfs
10-
11- # Remove older version of node & install node 20
12- RUN cd /etc/apt/sources.list.d && \
13- rm -f nodesource.list && \
14- apt --fix-broken install && \
15- apt update && \
16- apt-get remove nodejs -y && \
17- apt-get remove nodejs-doc -y && \
18- apt-get remove libnode-dev -y
19- RUN cd ~ && \
20- curl -sL https://deb.nodesource.com/setup_20.x -o nodesource_setup.sh && \
21- bash nodesource_setup.sh && \
22- apt-get install nodejs -y && \
23- rm -rf /var/lib/apt/lists/* && \
24- rm -f nodesource_setup.sh
25-
26- ENV NO_UPDATE_NOTIFIER=true
You can’t perform that action at this time.
0 commit comments