docs(troubleshooting): update Alpine Chromium version (#6529)
The latest Chromium provided by Alpine is at version 85.
This commit is contained in:
parent
e45acce928
commit
8f4a79e193
@ -315,14 +315,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 83, which corresponds to [Puppeteer v3.1.0](https://github.com/puppeteer/puppeteer/releases/tag/v3.1.0).
|
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).
|
||||||
|
|
||||||
Example Dockerfile:
|
Example Dockerfile:
|
||||||
|
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM alpine:edge
|
FROM alpine:edge
|
||||||
|
|
||||||
# Installs latest Chromium (77) package.
|
# Installs latest Chromium (85) package.
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
chromium \
|
chromium \
|
||||||
nss \
|
nss \
|
||||||
@ -340,8 +340,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 v1.19.0 works with Chromium 77.
|
# Puppeteer v5.2.1 works with Chromium 85.
|
||||||
RUN yarn add puppeteer@1.19.0
|
RUN yarn add puppeteer@5.2.1
|
||||||
|
|
||||||
# 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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user