@@ -20,24 +20,6 @@ RUN apt-get -qy --no-install-recommends install \
20
20
xvfb \
21
21
&& rm -rf /var/lib/apt/lists/*
22
22
23
- # ========================================
24
- # Add normal user with passwordless sudo
25
- # ========================================
26
- # RUN sudo useradd seluser --shell /bin/bash --create-home \
27
- # && sudo usermod -a -G sudo seluser \
28
- # && echo 'ALL ALL = (ALL) NOPASSWD: ALL' >> /etc/sudoers
29
-
30
- # ======================
31
- # Install Chromedriver
32
- # ======================
33
- RUN CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` && \
34
- mkdir -p /opt/chromedriver-$CHROMEDRIVER_VERSION && \
35
- curl -sS -o /tmp/chromedriver_linux64.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip && \
36
- unzip -qq /tmp/chromedriver_linux64.zip -d /opt/chromedriver-$CHROMEDRIVER_VERSION && \
37
- rm /tmp/chromedriver_linux64.zip && \
38
- chmod +x /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver && \
39
- ln -fs /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver /usr/local/bin/chromedriver
40
-
41
23
# ================
42
24
# Install Chrome
43
25
# ================
@@ -67,15 +49,6 @@ RUN apt-get -qy --no-install-recommends install \
67
49
&& ln -s /opt/firefox/firefox /usr/bin/firefox \
68
50
&& rm -f /tmp/firefox-esr.tar.bz2
69
51
70
- # ===================
71
- # Install PhantomJS
72
- # ===================
73
- # RUN cd /usr/local/share && wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
74
- # RUN cd /usr/local/share && tar xjf phantomjs-2.1.1-linux-x86_64.tar.bz2
75
- # RUN ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs
76
- # RUN ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs
77
- # RUN ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
78
-
79
52
# ===========================
80
53
# Configure Virtual Display
81
54
# ===========================
@@ -97,6 +70,8 @@ RUN pip install --upgrade pip
97
70
RUN pip install --upgrade setuptools
98
71
RUN cd /SeleniumBase && ls && pip install -r requirements.txt --upgrade
99
72
RUN cd /SeleniumBase && python setup.py develop
73
+ RUN seleniumbase install chromedriver
74
+ RUN seleniumbase install geckodriver
100
75
101
76
# ==========================================
102
77
# Create entrypoint and grab example tests
0 commit comments