Skip to content

Instantly share code, notes, and snippets.

@marcosnils
Last active February 23, 2018 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcosnils/6ca54a5606f76fed960b0a9763cfb36e to your computer and use it in GitHub Desktop.
Save marcosnils/6ca54a5606f76fed960b0a9763cfb36e to your computer and use it in GitHub Desktop.
Dockerfile to run selenium headless tests
FROM debian:jessie
RUN apt update && apt install -y firefox-esr \
&& wget https://github.com/mozilla/geckodriver/releases/download/v0.19.1/geckodriver-v0.19.1-linux64.tar.gz \
&& tar -C /usr/bin/ -xvf geckodriver-v0.19.1-linux64.tar.gz && rm geckodriver-v0.19.1-linux64.tar.gz \
&& wget https://download-installer.cdn.mozilla.net/pub/firefox/nightly/latest-mozilla-central/firefox-60.0a1.en-US.linux-x86_64.tar.bz2 \
&& tar -C /opt/ -xvf firefox-60.0a1.en-US.linux-x86_64.tar.bz2 \
&& rm /usr/bin/firefox && ln -s /opt/firefox/firefox /usr/bin/firefox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment