Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: use Node.js 16 in Docker (#9824)

Max Schmitt113d425f15cb
diff --git a/utils/docker/Dockerfile.bionic b/utils/docker/Dockerfile.bionic
index 124db261c4..44df21f20a 100644
--- a/utils/docker/Dockerfile.bionic
+++ b/utils/docker/Dockerfile.bionic
@@ -5,14 +5,11 @@ ARG TZ=America/Los_Angeles
# === INSTALL Node.js ===
-# Install node14
+# Install node16
RUN apt-get update && apt-get install -y curl && \
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
+ curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs
-# Upgrade to NPM7 (see https://github.com/microsoft/playwright/pull/8915)
-RUN npm install -g npm@7
-
# Feature-parity with node.js base images.
RUN apt-get update && apt-get install -y --no-install-recommends git ssh && \
npm install -g yarn
diff --git a/utils/docker/Dockerfile.focal b/utils/docker/Dockerfile.focal
index aafd7bd110..3c5431e92a 100644
--- a/utils/docker/Dockerfile.focal
+++ b/utils/docker/Dockerfile.focal
@@ -5,14 +5,11 @@ ARG TZ=America/Los_Angeles
# === INSTALL Node.js ===
-# Install node14
+# Install node16
RUN apt-get update && apt-get install -y curl && \
- curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
+ curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get install -y nodejs
-# Upgrade to NPM7 (see https://github.com/microsoft/playwright/pull/8915)
-RUN npm install -g npm@7
-
# Feature-parity with node.js base images.
RUN apt-get update && apt-get install -y --no-install-recommends git ssh && \
npm install -g yarn