From 35fc65492d562f6c296382cb83c55a214221e4f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ry=C5=8D=20Igarashi?= Date: Fri, 17 Apr 2020 18:30:26 +0900 Subject: [PATCH] docs: change the Alpine Docker example to use env instead of launch option (#5666) --- docs/troubleshooting.md | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/troubleshooting.md b/docs/troubleshooting.md index 992adcd3a1aef..a9fed32bb981f 100644 --- a/docs/troubleshooting.md +++ b/docs/troubleshooting.md @@ -341,7 +341,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 @@ -358,14 +359,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.