diff options
author | paulrbr-fl <43074087+paulrbr-fl@users.noreply.github.com> | 2019-03-13 14:44:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-13 14:44:39 +0100 |
commit | d181274c68649ae110a4f4baad8d350aaa824b7b (patch) | |
tree | 5d18891bf1d5e9ae20fde87a6243b602d53390cc /Dockerfile | |
parent | 65074988fb4e2ddced8edba50927f6f6536604c3 (diff) | |
parent | 0bbf02d94587ea9da477b6650be3e1070fbc3408 (diff) | |
download | docker-puppeteer-1.13.0.tar.gz docker-puppeteer-1.13.0.tar.zst docker-puppeteer-1.13.0.zip |
Merge pull request #2 from paulrbr-fl/masterv1.13.0
remove uneeded external script "wait-for-it" and use 'fuser' instead
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -4,20 +4,19 @@ | |||
4 | # https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker | 4 | # https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md#running-puppeteer-in-docker |
5 | 5 | ||
6 | FROM node:10.15.3-slim@sha256:5a48598688f771a9140fdef31585dbe67b313b1e29439cbd9b81ebb25aeca517 | 6 | FROM node:10.15.3-slim@sha256:5a48598688f771a9140fdef31585dbe67b313b1e29439cbd9b81ebb25aeca517 |
7 | 7 | ||
8 | RUN apt-get update \ | 8 | RUN apt-get update \ |
9 | # See https://crbug.com/795759 | 9 | # See https://crbug.com/795759 |
10 | && apt-get install -yq libgconf-2-4 \ | 10 | && apt-get install -yq libgconf-2-4 \ |
11 | # Install latest chrome dev package, which installs the necessary libs to | 11 | # Install latest chrome dev package, which installs the necessary libs to |
12 | # make the bundled version of Chromium that Puppeteer installs work. | 12 | # make the bundled version of Chromium that Puppeteer installs work. |
13 | && apt-get install -y wget make --no-install-recommends \ | 13 | # Also install system deps such as make, psmisc to have utily functions (such as fuser, peekfd) |
14 | && apt-get install -y wget make psmisc --no-install-recommends \ | ||
14 | && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | 15 | && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ |
15 | && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ | 16 | && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \ |
16 | && apt-get update \ | 17 | && apt-get update \ |
17 | && apt-get install -y google-chrome-unstable --no-install-recommends \ | 18 | && apt-get install -y google-chrome-unstable --no-install-recommends \ |
18 | && rm -rf /var/lib/apt/lists/* \ | 19 | && rm -rf /var/lib/apt/lists/* \ |
19 | && wget --quiet https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -O /usr/sbin/wait-for-it.sh \ | ||
20 | && chmod +x /usr/sbin/wait-for-it.sh | ||
21 | 20 | ||
22 | # Tell Puppeteer to skip installing Chrome. We'll be using the installed package. | 21 | # Tell Puppeteer to skip installing Chrome. We'll be using the installed package. |
23 | # you'll need to launch puppeteer with: | 22 | # you'll need to launch puppeteer with: |