Skip to content

Commit 9adf647

Browse files
maxi7587pablorsk
authored andcommitted
Added Chrome for e2e testing (#4)
* Added Chrome for e2e testing
1 parent 907110a commit 9adf647

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
11
FROM node:9.11
22

3-
RUN apt-get update && apt-get -qq install lftp
3+
RUN apt-get update \
4+
# Install lftp
5+
&& apt-get -qq install lftp
6+
# Install latest chrome dev package, which installs the necessary libs to
7+
# make the bundled version of Chromium that Puppeteer installs work.
8+
&& apt-get install -y wget --no-install-recommends \
9+
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
10+
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
11+
&& apt-get update \
12+
&& apt-get install -y google-chrome-unstable --no-install-recommends \
13+
&& rm -rf /var/lib/apt/lists/* \
14+
&& wget --quiet https://raw.githubusercontent.com/vishnubob/wait-for-it/master/wait-for-it.sh -O /usr/sbin/wait-for-it.sh \
15+
&& chmod +x /usr/sbin/wait-for-it.sh

0 commit comments

Comments
 (0)