Skip to content

Commit

Permalink
docs: change the Alpine Docker example to use env instead of launch o…
Browse files Browse the repository at this point in the history
…ption (#5666)
  • Loading branch information
neet committed Apr 17, 2020
1 parent 20c22ad commit 35fc654
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions docs/troubleshooting.md
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 35fc654

Please sign in to comment.