77
|
1 FROM java:8-jre
|
|
2
|
344
|
3 MAINTAINER Catherine Aldrich <aldrich@ssdt-ohio.org>
|
77
|
4
|
|
5 ENV TESTBENCHJAR=/testbench-standalone.jar
|
|
6
|
|
7 RUN mkdir /phantom
|
|
8
|
|
9 WORKDIR /phantom
|
|
10
|
344
|
11
|
|
12
|
77
|
13 ADD http://files.ssdt.io/phantomjs-2.1.1-linux-x86_64.tar /phantom/phantomjs.tar
|
|
14
|
|
15 RUN tar -xf phantomjs.tar \
|
|
16 && mv $(find /phantom -name phantomjs) /bin \
|
|
17 && rm -rf /phantom
|
344
|
18
|
343
|
19 RUN apt-get update -
|
344
|
20
|
343
|
21 RUN mkdir /chromeinstall
|
344
|
22
|
343
|
23 ADD google-chrome-stable_current_amd64.deb /chromeinstall/google-chrome-stable_current_amd64.deb
|
344
|
24
|
343
|
25 RUN apt install -y /chromeinstall/google-chrome-stable_current_amd64.deb
|
|
26
|
344
|
27
|
343
|
28 RUN apt-get install -y chromium-chromedriver
|
|
29
|
344
|
30
|
|
31 ADD http://files.ssdt.io/vaadin-testbench-standalone-5.1.2.jar $TESTBENCHJAR
|
77
|
32
|
|
33 WORKDIR /
|
|
34
|
|
35 COPY ./docker-entrypoint.sh /
|
|
36
|
|
37 RUN chmod a+x /docker-entrypoint.sh
|
|
38
|
|
39 ENTRYPOINT [ "./docker-entrypoint.sh" ]
|
|
40
|
78
|
41 CMD [ "node" ]
|