Skip to content

Commit cb16263

Browse files
committed
Add Geckodriver installation to Dockerfile
1 parent fafc3fb commit cb16263

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,17 @@ RUN apt-get -qy --no-install-recommends install \
7373
&& ln -s /opt/firefox/firefox /usr/bin/firefox \
7474
&& rm -f /tmp/firefox-esr.tar.bz2
7575

76+
#======================================
77+
# Install Geckodriver / Firefox Driver
78+
#======================================
79+
RUN export BASE_URL=https://github.com/mozilla/geckodriver/releases/download \
80+
&& export VERSION=$(curl -sL \
81+
https://api.github.com/repos/mozilla/geckodriver/releases/latest | \
82+
grep tag_name | cut -d '"' -f 4) \
83+
&& curl -sL \
84+
$BASE_URL/$VERSION/geckodriver-$VERSION-linux64.tar.gz | tar -xz \
85+
&& mv geckodriver /usr/local/bin/geckodriver
86+
7687
#===================
7788
# Install PhantomJS
7889
#===================
@@ -98,6 +109,8 @@ COPY seleniumbase /SeleniumBase/seleniumbase/
98109
COPY examples /SeleniumBase/examples/
99110
COPY requirements.txt /SeleniumBase/requirements.txt
100111
COPY setup.py /SeleniumBase/setup.py
112+
RUN pip install --upgrade pip
113+
RUN pip install --upgrade setuptools
101114
RUN cd /SeleniumBase && ls && pip install -r requirements.txt
102115

103116
#==========================================

0 commit comments

Comments
 (0)