You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.4 KiB
32 lines
1.4 KiB
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 \ |
|
firefox \ |
|
git \ |
|
gnupg2 \ |
|
openjdk-11-jdk \ |
|
python3 \ |
|
python-is-python3 \ |
|
unzip \ |
|
wget |
|
|
|
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 |
|
|
|
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} |
|
|
|
COPY chrome-no-sandbox /usr/bin/chrome-no-sandbox |
|
RUN chmod u+x /usr/bin/chrome-no-sandbox
|
|
|