From 26d6e91fd57cfa906a43f38151e5b35a779435ff Mon Sep 17 00:00:00 2001 From: Alex Sergeyev Date: Tue, 26 Mar 2019 00:33:36 +0100 Subject: [PATCH] docs(troubleshooting.md): Update Alpine example (#4203) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Refresh documentation for building on Alpine. * Add ttf-freefont@edge dependency Without ttf-freefont chrome can't render subscript (CO₂) --- docs/troubleshooting.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 9a9974c9..0308d2fc 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -248,14 +248,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 71, which was corresponding to [Puppeteer v1.9.0](https://github.com/GoogleChrome/puppeteer/releases/tag/v1.9.0). +The [newest Chromium package](https://pkgs.alpinelinux.org/package/edge/community/x86_64/chromium) supported on Alpine is 72, which was corresponding to [Puppeteer v1.11.0](https://github.com/GoogleChrome/puppeteer/releases/tag/v1.11.0). Example Dockerfile: ```Dockerfile FROM node:10-alpine -# Installs latest Chromium (71) package. +# Installs latest Chromium (72) package. 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/main >> /etc/apk/repositories && \ @@ -263,15 +263,16 @@ RUN apk update && apk upgrade && \ chromium@edge \ nss@edge \ freetype@edge \ - harfbuzz@edge + harfbuzz@edge \ + ttf-freefont@edge ... # Tell Puppeteer to skip installing Chrome. We'll be using the installed package. ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true -# Puppeteer v1.9.0 works with Chromium 71. -RUN yarn add puppeteer@1.9.0 +# Puppeteer v1.11.0 works with Chromium 72. +RUN yarn add puppeteer@1.11.0 # Add user so we don't need --no-sandbox. RUN addgroup -S pptruser && adduser -S -g pptruser pptruser \