Last active
May 1, 2018 20:45
-
-
Save Itsindigo/1092c091ef763d7a92d3939f4b8efa79 to your computer and use it in GitHub Desktop.
Selenium Dockerfile
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
# THIS IS OUR LINUX VERSION | |
FROM alpine:edge | |
# A SPECIFIC VERSION OF FIREFOX WE NEEDED | |
ENV FIREFOX_VERSION 58.0.1-r2 | |
# A PRE DOWNLOADED GECKODRIVER BINARY THAT WE STORE IN PROJECT | |
COPY geckodriver /usr/local/bin/ | |
RUN apk update && | |
# FIREFOX BITS | |
apk add --repository https://dl-4.alpinelinux.org/alpine/edge/testing/ firefox=${FIREFOX_VERSION} && \ | |
apk add ttf-freefont && \ | |
# SOME NECESSARY LINUX BITS | |
apk add --update openssh && \ | |
apk add openssl-dev && \ | |
apk add --update g++ gcc libxslt-dev && \ | |
apk add bash && \ | |
apk add unixodbc && \ | |
apk add unixodbc-dev && \ | |
# PYTHON BITS | |
apk add python && \ | |
apk add python-dev && \ | |
apk add py-pip && \ | |
pip install virtualenv && \ | |
pip install wheel && \ | |
# NODE BITS | |
apk add nodejs && \ | |
apk add nodejs-dev && \ | |
apk add nodejs-npm && \ | |
# RUBY BITS | |
apk add ruby && \ | |
apk add ruby-dev && \ | |
apk add --update build-base libffi-dev && \ | |
apk add ruby-rdoc && \ | |
apk add ruby-irb && \ | |
# Ah, this is why we needed Ruby | |
gem install sass && \ | |
# docker client | |
apk add docker | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment