chore: use Node.js 16 in Docker (#9824)
This commit is contained in:
parent
d1cbe0b830
commit
113d425f15
|
|
@ -5,14 +5,11 @@ ARG TZ=America/Los_Angeles
|
||||||
|
|
||||||
# === INSTALL Node.js ===
|
# === INSTALL Node.js ===
|
||||||
|
|
||||||
# Install node14
|
# Install node16
|
||||||
RUN apt-get update && apt-get install -y curl && \
|
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
|
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.
|
# Feature-parity with node.js base images.
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends git ssh && \
|
RUN apt-get update && apt-get install -y --no-install-recommends git ssh && \
|
||||||
npm install -g yarn
|
npm install -g yarn
|
||||||
|
|
|
||||||
|
|
@ -5,14 +5,11 @@ ARG TZ=America/Los_Angeles
|
||||||
|
|
||||||
# === INSTALL Node.js ===
|
# === INSTALL Node.js ===
|
||||||
|
|
||||||
# Install node14
|
# Install node16
|
||||||
RUN apt-get update && apt-get install -y curl && \
|
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
|
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.
|
# Feature-parity with node.js base images.
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends git ssh && \
|
RUN apt-get update && apt-get install -y --no-install-recommends git ssh && \
|
||||||
npm install -g yarn
|
npm install -g yarn
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue