-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 931 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM ubuntu
COPY start.sh /start.sh
RUN dpkg --add-architecture i386 \
&& apt-get -y install wget \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y xvfb git curl default-jre openjdk-7-jre google-chrome-stable firefox php5 php5-curl
RUN git clone https://github.com/bogdananton/Selenium-Setup \
&& cd Selenium-Setup \
&& wget https://getcomposer.org/composer.phar \
&& php composer.phar install
RUN export DISPLAY=:99.0 \
&& /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16
RUN chmod +x /start.sh
RUN php Selenium-Setup/bin/selenium-setup.php start
EXPOSE 4444
CMD ["sh", "start.sh"]