File tree 1 file changed +13
-4
lines changed 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,19 @@ USER root
14
14
RUN apt-get update \
15
15
&& apt-get install -y git make cmake curl dpkg-dev m4 yasm texinfo python-is-python3 libtool tcl zip libncurses-dev
16
16
17
- # Install nodejs and pnpm
18
- RUN \
19
- curl -sL https://deb.nodesource.com/setup_18.x | bash - \
20
- && apt-get install -y nodejs \
17
+ # Install nodejs and pnpm.
18
+ # We specify a particular version of node.js for reproducibility, not because
19
+ # it is needed for some reason.
20
+ RUN apt-get update \
21
+ && apt-get remove -y nodejs libnode72 nodejs-doc \
22
+ && apt-get install -y apt-utils ca-certificates curl gnupg \
23
+ && mkdir -p /etc/apt/keyrings \
24
+ && rm -f /etc/apt/keyrings/nodesource.gpg \
25
+ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
26
+ && export NODE_MAJOR=18 \
27
+ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \
28
+ && apt-get update && apt-get install nodejs=18.17.1-1nodesource1 -y \
29
+ && apt-mark hold nodejs \
21
30
&& npm install -g npm pnpm
22
31
23
32
# Get source code of python-wasm and build everything:
You can’t perform that action at this time.
0 commit comments