Skip to content

Instantly share code, notes, and snippets.

@tabiodun
Last active April 24, 2018 21:33
Show Gist options
  • Save tabiodun/ca1f050f56acfc174d1448f3570b44c4 to your computer and use it in GitHub Desktop.
Save tabiodun/ca1f050f56acfc174d1448f3570b44c4 to your computer and use it in GitHub Desktop.
Dockerfile for tabiodun/selenium-chrome-headless
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://chromedriver.storage.googleapis.com/2.31/chromedriver_linux64.zip \
&& unzip chromedriver_linux64.zip \
&& rm chromedriver_linux64.zip \
&& mv -f chromedriver /usr/local/share/ \
&& chmod +x /usr/local/share/chromedriver \
&& ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
ENTRYPOINT [ "/bin/bash"]
@tabiodun
Copy link
Author

I'll add to the gist

@snackattas
Copy link

@tabiodun, I'm a novice at Dockerfile inheritance, so please excuse my basic question. But is the idea here that:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment