From 5d99719f5de22b9a00847b382996cbd55b2b1784 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 26 Oct 2022 08:11:20 -0700 Subject: [PATCH] chore: use Node.js 18 for Docker images (#18334) Node.js 18 is now LTS and we follow LTS schedule. --- utils/docker/Dockerfile.focal | 4 ++-- utils/docker/Dockerfile.jammy | 4 ++-- utils/linux-browser-dependencies/inside_docker/process.sh | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/docker/Dockerfile.focal b/utils/docker/Dockerfile.focal index f6db13a34a..6eebb33f16 100644 --- a/utils/docker/Dockerfile.focal +++ b/utils/docker/Dockerfile.focal @@ -7,9 +7,9 @@ ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright:v%version%-focal" # === INSTALL Node.js === RUN apt-get update && \ - # Install node16 + # Install node18 apt-get install -y curl wget gpg && \ - curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ + curl -sL https://deb.nodesource.com/setup_18.x | bash - && \ apt-get install -y nodejs && \ # Feature-parity with node.js base images. apt-get install -y --no-install-recommends git openssh-client && \ diff --git a/utils/docker/Dockerfile.jammy b/utils/docker/Dockerfile.jammy index 63868afbdd..908c671e74 100644 --- a/utils/docker/Dockerfile.jammy +++ b/utils/docker/Dockerfile.jammy @@ -7,9 +7,9 @@ ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright:v%version%-jammy" # === INSTALL Node.js === RUN apt-get update && \ - # Install node16 + # Install node18 apt-get install -y curl wget gpg && \ - curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ + curl -sL https://deb.nodesource.com/setup_18.x | bash - && \ apt-get install -y nodejs && \ # Feature-parity with node.js base images. apt-get install -y --no-install-recommends git openssh-client && \ diff --git a/utils/linux-browser-dependencies/inside_docker/process.sh b/utils/linux-browser-dependencies/inside_docker/process.sh index be813f52e0..2fa85035c5 100755 --- a/utils/linux-browser-dependencies/inside_docker/process.sh +++ b/utils/linux-browser-dependencies/inside_docker/process.sh @@ -5,7 +5,7 @@ set +x # Install Node.js apt-get update && apt-get install -y curl && \ - curl -sL https://deb.nodesource.com/setup_16.x | bash - && \ + curl -sL https://deb.nodesource.com/setup_18.x | bash - && \ apt-get install -y nodejs # Install apt-file