diff --git a/Dockerfile b/Dockerfile index ce3e5b8..7072d02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,20 @@ RUN export CHROMEDRIVER_VERSION=$(curl --silent https://chromedriver.storage.goo unzip chromedriver_linux64.zip -d /usr/bin && \ chmod 755 /usr/bin/chromedriver && \ rm -f chromedriver_linux64.zip - -RUN pip install --no-cache gevent + +ARG GECKODRIVER_VERSION=v0.28.0 +ARG FIREFOX_VERSION=88.0 + +# geckodriver +RUN wget https://github.com/mozilla/geckodriver/releases/download/${GECKODRIVER_VERSION}/geckodriver-${GECKODRIVER_VERSION}-linux64.tar.gz -O /tmp/geckodriver.tar.gz && \ + tar xvfz /tmp/geckodriver.tar.gz -C /tmp && \ + mv /tmp/geckodriver /usr/local/bin/geckodriver && \ + rm /tmp/geckodriver.tar.gz + +# Install Firefox +RUN wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/en-US/firefox-${FIREFOX_VERSION}.tar.bz2 -O /opt/firefox.tar.bz2 && \ + tar xvf /opt/firefox.tar.bz2 -C /opt && \ + ln -s /opt/firefox/firefox /usr/local/bin/firefox # Install base drivers required for helm chart to work RUN pip install gevent \