Skip to content

Commit 213778a

Browse files
committed
chore: update node & npm installation
1 parent 01386fd commit 213778a

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/cli/src/lib/defaults/build-strategies/wasm/rust/image/Dockerfile.mustache

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ RUN apk add curl pkgconfig openssl-dev bash
1111
# Install clang
1212
RUN apk add clang llvm build-base
1313

14+
# Install Node.js
15+
RUN apk add --no-cache nodejs npm
16+
1417
# Install wasm-opt
15-
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash
16-
RUN nvm install 18 && nvm use 18
1718
RUN npm i wasm-opt -g
1819

1920
# Install wasm-snip

packages/cli/src/lib/defaults/build-strategies/wasm/rust/vm/Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ RUN apk add curl pkgconfig openssl-dev bash
1111
# Install clang
1212
RUN apk add clang llvm build-base
1313

14+
# Install Node.js
15+
RUN apk add --no-cache nodejs npm
16+
1417
# Install wasm-opt
15-
RUN touch ~/.bashrc
16-
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.3/install.sh | bash
17-
RUN source ~/.bashrc
18-
RUN nvm install 18 && nvm use 18
1918
RUN npm i wasm-opt -g
2019

2120
# Install wasm-snip

0 commit comments

Comments
 (0)