From 1a609335296e0e3a2ce2b8248365faf60d580bd6 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Thu, 25 May 2023 22:00:22 +0200 Subject: [PATCH] [wasm] Install latest LTS npm/node for codespaces (#86767) * [wasm] Install latest LTS npm/node for codespaces * Fix docker build --- .devcontainer/wasm/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.devcontainer/wasm/Dockerfile b/.devcontainer/wasm/Dockerfile index ffb5b4f494b1ed..17ceadc668b0bf 100644 --- a/.devcontainer/wasm/Dockerfile +++ b/.devcontainer/wasm/Dockerfile @@ -27,9 +27,12 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ zlib1g-dev \ ninja-build -# Install V8 Engine SHELL ["/bin/bash", "-c"] +# Install LTS npm and node +RUN source /usr/local/share/nvm/nvm.sh && nvm install --lts + +# Install V8 Engine RUN curl -sSL "https://netcorenativeassets.blob.core.windows.net/resource-packages/external/linux/chromium-v8/v8-linux64-rel-8.5.183.zip" -o ./v8.zip \ && unzip ./v8.zip -d /usr/local/v8 \ && echo $'#!/usr/bin/env bash\n\