docs: bump recommended version for Alpine Docker (#7563)

The current documentation for running with an Alpine-based Docker image
recommends using Chromium 89 / Puppeteer 6.0.0.

Chromium 92 is now supported by Puppeteer 10.0.0; this commit bumps the
recommended versions.
This commit is contained in:
Andy Chosak 2021-09-14 09:07:12 -04:00 committed by GitHub
parent a21b7376e7
commit 32cb9e93d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -339,14 +339,14 @@ how to run this Dockerfile from a webserver running on App Engine Flex (Node).
### Running on Alpine ### Running on Alpine
The [newest Chromium package](https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium) supported on Alpine is 89, which corresponds to [Puppeteer v6.0.0](https://github.com/puppeteer/puppeteer/releases/tag/v6.0.0). The [newest Chromium package](https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium) supported on Alpine is 92, which corresponds to [Puppeteer v10.0.0](https://github.com/puppeteer/puppeteer/releases/tag/v10.0.0).
Example Dockerfile: Example Dockerfile:
```Dockerfile ```Dockerfile
FROM alpine FROM alpine
# Installs latest Chromium (89) package. # Installs latest Chromium (92) package.
RUN apk add --no-cache \ RUN apk add --no-cache \
chromium \ chromium \
nss \ nss \
@ -363,8 +363,8 @@ RUN apk add --no-cache \
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
# Puppeteer v6.0.0 works with Chromium 89. # Puppeteer v10.0.0 works with Chromium 92.
RUN yarn add puppeteer@6.0.0 RUN yarn add puppeteer@10.0.0
# Add user so we don't need --no-sandbox. # Add user so we don't need --no-sandbox.
RUN addgroup -S pptruser && adduser -S -g pptruser pptruser \ RUN addgroup -S pptruser && adduser -S -g pptruser pptruser \