Dockerfile for running Python Selenium in headless Chrome (Python 2.7 / 3.6 / 3.7 / 3.8 / Alpine based Python / Chromedriver / Selenium / Xvfb included in different versions)
Right now the images don't use any kind of templating I could find cause otherwise I would have done a PR to fix all those issues:
apt cache is not getting deleted and apt-get update does not run in the same layer as apt-get install which is against dockers best practices and can lead to caching issues where you never install never packages
chromedriver.zip does not get deleted and shipped in the final image which unnecessarily increases image size
The script just installs any latest version of Chrome and is not reproducible
download mirrors are hard coded
older alpine versions are used instead of the latest
you run apk update which is not necessary and apk add should be run with --no-cache
Right now the images don't use any kind of templating I could find cause otherwise I would have done a PR to fix all those issues: