-
-
Save graingert/7cdac941df4ad0800956827ba8e2ed44 to your computer and use it in GitHub Desktop.
Dockerfile for tabiodun/selenium-chrome-headless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM selenium/node-base:3.4.0-dysprosium | |
USER root | |
ARG CHROME_VERSION="google-chrome-beta" | |
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ | |
&& echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list \ | |
&& apt-get update -qqy \ | |
&& apt-get -qqy install \ | |
${CHROME_VERSION:-google-chrome-beta} \ | |
&& rm /etc/apt/sources.list.d/google-chrome.list \ | |
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/* | |
RUN wget --no-check-certificate https://tobiazure.blob.core.windows.net/files/chromedriver.zip \ | |
&& unzip chromedriver.zip \ | |
&& rm chromedriver.zip \ | |
&& mv -f chromedriver /usr/local/share/ \ | |
&& chmod +x /usr/local/share/chromedriver \ | |
&& ln -s /usr/local/share/chromedriver /usr/bin/chromedriver | |
ENTRYPOINT [ "/bin/bash"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment