From 41c0225764df5a1fa0a76fc77c4a9b1e3e0cdf4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ry=C5=8D=20Igarashi?= Date: Fri, 17 Apr 2020 12:18:17 +0900 Subject: [PATCH] docs: Change the Alpine Docker example to use env instead of launch option --- docs/troubleshooting.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index b6b361caf01bb..369ad7a394a0d 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -340,7 +340,8 @@ RUN apk add --no-cache \ ... # 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_EXECUTABLE_PATH=/usr/bin/chromium-browser # Puppeteer v1.19.0 works with Chromium 77. RUN yarn add puppeteer@1.19.0 @@ -357,14 +358,6 @@ USER pptruser ... ``` -And when launching Chrome, be sure to use the `chromium-browser` executable: - -```js -const browser = await puppeteer.launch({ - executablePath: '/usr/bin/chromium-browser' -}); -``` - #### Tips By default, Docker runs a container with a `/dev/shm` shared memory space 64MB.