Update Node.js from 22 to 24 in Docker configurations (#57477)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
# To find available Node images, see https://mcr.microsoft.com/en-us/product/devcontainers/javascript-node/tags
|
||||
|
||||
# [Choice] Node.js version
|
||||
ARG VARIANT="dev-22-bullseye"
|
||||
ARG VARIANT="dev-24-bullseye"
|
||||
FROM mcr.microsoft.com/devcontainers/javascript-node:${VARIANT}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"build": {
|
||||
"dockerfile": "Dockerfile",
|
||||
// Update 'VARIANT' to pick a Node version
|
||||
"args": { "VARIANT": "22" }
|
||||
"args": { "VARIANT": "24" }
|
||||
},
|
||||
|
||||
// Install features. Type 'feature' in the VS Code command palette for a full list.
|
||||
|
||||
@@ -17,7 +17,7 @@ FROM ghcr.io/github/gh-base-image/gh-base-noble:20250805-204228-g50c20871f AS ba
|
||||
# Ubuntu's apt-get install nodejs is _very_ outdated
|
||||
# Must run as root
|
||||
RUN apt-get -qq update && apt-get -qq install --no-install-recommends curl git \
|
||||
&& curl -sL https://deb.nodesource.com/setup_22.x | bash - \
|
||||
&& curl -sL https://deb.nodesource.com/setup_24.x | bash - \
|
||||
&& apt-get install -y nodejs \
|
||||
&& node --version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user