mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
docs(troubleshooting): update Chromium package supported on Alpine (#2997)
This commit is contained in:
parent
c018ff1555
commit
fd5d95bd99
@ -172,14 +172,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 64, which was corresponding to [Puppeteer v0.13.0](https://github.com/GoogleChrome/puppeteer/releases/tag/v0.13.0).
|
The [newest Chromium package](https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium) supported on Alpine is 68, which was corresponding to [Puppeteer v1.4.0](https://github.com/GoogleChrome/puppeteer/releases/tag/v1.4.0).
|
||||||
|
|
||||||
Example Dockerfile:
|
Example Dockerfile:
|
||||||
|
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM node:9-alpine
|
FROM node:9-alpine
|
||||||
|
|
||||||
# Installs latest Chromium (64) package.
|
# Installs latest Chromium (68) package.
|
||||||
RUN apk update && apk upgrade && \
|
RUN apk update && apk upgrade && \
|
||||||
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
|
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
|
||||||
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
|
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
|
||||||
@ -192,8 +192,8 @@ RUN apk update && apk upgrade && \
|
|||||||
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
|
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
|
||||||
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
|
||||||
|
|
||||||
# Puppeteer v0.13.0 works with Chromium 64.
|
# Puppeteer v1.4.0 works with Chromium 68.
|
||||||
RUN yarn add puppeteer@0.13.0
|
RUN yarn add puppeteer@1.4.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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user