Skip to content

Instantly share code, notes, and snippets.

@jrbenny35
Created January 9, 2018 23:45
Show Gist options
  • Save jrbenny35/3380b3d70e751c015fda4bf4946ed9b8 to your computer and use it in GitHub Desktop.
Save jrbenny35/3380b3d70e751c015fda4bf4946ed9b8 to your computer and use it in GitHub Desktop.
Selenium firefox nightly dockerfile
FROM selenium/standalone-firefox
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y install mysql-server
RUN apt-get install -y libmysqlclient-dev
RUN apt-get install -y git
RUN apt-get install -y nodejs
RUN apt-get install -y npm
RUN ln -s /usr/bin/nodejs /usr/bin/node
ARG FIREFOX_DOWNLOAD_URL=https://download.mozilla.org/?product=firefox-nightly-latest-ssl&lang=en-US&os=linux64
RUN wget --no-verbose -O /tmp/firefox.tar.bz2 $FIREFOX_DOWNLOAD_URL \
&& apt-get -y purge firefox \
&& rm -rf /opt/firefox \
&& tar -C /opt -xjf /tmp/firefox.tar.bz2 \
&& rm /tmp/firefox.tar.bz2 \
&& mv /opt/firefox /opt/firefox-nightly \
&& ln -fs /opt/firefox-nightly/firefox /usr/bin/firefox
RUN apt-get install -y python-pip python-dev build-essential
RUN pip install --upgrade pip
RUN pip install tox
WORKDIR /code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment