docs(puppeteer-chromium): docker alpine switch to Alpine 3.10 (#4644)
This commit is contained in:
parent
2871bcd57d
commit
ff6d2a33f3
@ -321,27 +321,27 @@ The [newest Chromium package](https://pkgs.alpinelinux.org/package/edge/communit
|
|||||||
Example Dockerfile:
|
Example Dockerfile:
|
||||||
|
|
||||||
```Dockerfile
|
```Dockerfile
|
||||||
FROM node:10-alpine
|
FROM alpine:edge
|
||||||
|
|
||||||
# Installs latest Chromium (73) package.
|
# Installs latest Chromium (76) package.
|
||||||
RUN apk update && apk upgrade && \
|
RUN apk add --no-cache \
|
||||||
echo @edge http://nl.alpinelinux.org/alpine/edge/community >> /etc/apk/repositories && \
|
chromium \
|
||||||
echo @edge http://nl.alpinelinux.org/alpine/edge/main >> /etc/apk/repositories && \
|
nss \
|
||||||
apk add --no-cache \
|
freetype \
|
||||||
chromium@edge=~73.0.3683.103 \
|
freetype-dev \
|
||||||
nss@edge \
|
harfbuzz \
|
||||||
freetype@edge \
|
ca-certificates \
|
||||||
freetype-dev@edge \
|
ttf-freefont \
|
||||||
harfbuzz@edge \
|
nodejs \
|
||||||
ttf-freefont@edge
|
yarn
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
# 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 v1.12.2 works with Chromium 73.
|
# Puppeteer v1.17.0 works with Chromium 76.
|
||||||
RUN yarn add puppeteer@1.12.2
|
RUN yarn add puppeteer@1.17.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