FROM ubuntu:20.10 SHELL ["/bin/bash", "-c"] RUN echo "dash dash/sh boolean false" | debconf-set-selections RUN dpkg-reconfigure -f noninteractive dash RUN dpkg --add-architecture i386 && apt-get update -yqq && apt-get install -y \ gnupg2 \ openjdk-11-jdk \ python3 \ python-is-python3 \ unzip \ wget ARG CHROME_VERSION="google-chrome-stable" RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ && apt-get update -yqq \ && apt-get install -y ${CHROME_VERSION:-google-chrome-stable} ARG FIREFOX_VERSION="92.0b9" RUN wget https://ftp.mozilla.org/pub/firefox/releases/${FIREFOX_VERSION}/linux-x86_64/en-US/firefox-${FIREFOX_VERSION}.tar.bz2 \ && tar xvf firefox-${FIREFOX_VERSION}.tar.bz2 \ && mv firefox/ /usr/bin/firefox RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.29.1/geckodriver-v0.29.1-linux64.tar.gz \ && tar -xvzf geckodriver-v0.29.1-linux64.tar.gz && mkdir -p /root/.gradle/selenium/gecko &&mv geckodriver /root/.gradle/selenium/gecko RUN export CHROME_DRIVER_VERSION=$(wget -qO- https://chromedriver.storage.googleapis.com/LATEST_RELEASE) \ && wget https://chromedriver.storage.googleapis.com/${CHROME_DRIVER_VERSION}/chromedriver_linux64.zip -P ~/tmp \ && mkdir -p /root/.gradle/selenium/chrome && unzip -d /root/.gradle/selenium/chrome ~/tmp/chromedriver_linux64.zip && rm ~/tmp/chromedriver_linux64.zip COPY chrome-no-sandbox /usr/bin/chrome-no-sandbox RUN chmod u+x /usr/bin/chrome-no-sandbox