-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (24 loc) · 1.01 KB
/
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
27
28
29
30
31
32
33
34
FROM selenium/standalone-chrome-debug
LABEL Description="selenium-facebook-web-driver-testing" Vendor="Daniel Drexlmaier" Version="1.5" maintainer="daniel@se-medien.de"
MAINTAINER daniel@se-medien.de
USER root
# Install dependencies
RUN apt-get update \
&& apt-get install -y unzip wget sudo bzip2 gnupg apt-utils curl apt-transport-https ca-certificates \
&& apt-get install -y php-cli php-dev php-curl php-xml php-zip php-mbstring \
&& apt-get clean \
&& cd /usr/local/bin \
&& curl -sS https://getcomposer.org/installer | php \
&& php composer.phar require facebook/webdriver \
&& echo 'root:secret' | chpasswd \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD example.php /usr/local/bin
# Run Chrome non-privileged
#USER chrome
# Expose port 9222
EXPOSE 9222
EXPOSE 4444
# Autorun chrome headless with no GPU
#ENTRYPOINT [ "google-chrome-stable" ]
#CMD [ "--headless", "--disable-gpu", "--remote-debugging-address=0.0.0.0", "--remote-debugging-port=9222" ]
#RUN cd /usr/local/bin && php example.php