A Docker container that installs:
- Chrome
- Python
- Selenium
- Chromedriver
It also provides a sample script to get you started to run a Selenium session.
docker build --tag docker-selenium-chrome:latest .
docker run docker-selenium-chrome:latest
- Create your own repository
- Create your script (
run_test.py
, for example) - Add the following Dockerfile:
FROM cnuss/selenium-chrome:latest
ADD run_test.py /opt/bin
CMD ["/opt/bin/launcher", "/opt/bin/run_test.py"]
This effectively overrides the CMD
that runs simple_test.py
, but still leverages launcher
so the display get's set up for you!