Skip to content

Commit

Permalink
docs(troubleshooting): update Alpine section (#6960)
Browse files Browse the repository at this point in the history
The latest Chromium provided by Alpine is at version 89.

Co-authored-by: Mathias Bynens <mathias@qiwi.be>
  • Loading branch information
macbre and mathiasbynens committed Mar 9, 2021
1 parent 9e3fcb9 commit 35e66c4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/troubleshooting.md
Expand Up @@ -316,14 +316,14 @@ how to run this Dockerfile from a webserver running on App Engine Flex (Node).

### Running on Alpine

The [newest Chromium package](https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium) supported on Alpine is 85, which corresponds to [Puppeteer v5.2.1](https://github.com/puppeteer/puppeteer/releases/tag/v5.2.1).
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).

Example Dockerfile:

```Dockerfile
FROM alpine:edge

# Installs latest Chromium (85) package.
# Installs latest Chromium (89) package.
RUN apk add --no-cache \
chromium \
nss \
Expand All @@ -341,8 +341,8 @@ RUN apk add --no-cache \
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser

# Puppeteer v5.2.1 works with Chromium 85.
RUN yarn add puppeteer@5.2.1
# Puppeteer v6.0.0 works with Chromium 89.
RUN yarn add puppeteer@6.0.0

# Add user so we don't need --no-sandbox.
RUN addgroup -S pptruser && adduser -S -g pptruser pptruser \
Expand Down

0 comments on commit 35e66c4

Please sign in to comment.