{"id":16237791,"url":"https://github.com/tonyp7/docker-flask-selenium-chromedriver","last_synced_at":"2025-06-10T09:03:46.628Z","repository":{"id":211568098,"uuid":"726329812","full_name":"tonyp7/docker-flask-selenium-chromedriver","owner":"tonyp7","description":"Dockerfile for running a Python / Flask web app with Selenium and chromedriver.","archived":false,"fork":false,"pushed_at":"2023-12-25T05:47:10.000Z","size":88,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-03T13:38:39.896Z","etag":null,"topics":["chromedriver","docker","docker-compose","docker-image","flask","python","selenium"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tonyp7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-02T04:13:41.000Z","updated_at":"2025-03-21T02:15:40.000Z","dependencies_parsed_at":"2025-04-03T13:48:41.210Z","dependency_job_id":null,"html_url":"https://github.com/tonyp7/docker-flask-selenium-chromedriver","commit_stats":null,"previous_names":["tonyp7/docker-flask-selenium-chromedriver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyp7%2Fdocker-flask-selenium-chromedriver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyp7%2Fdocker-flask-selenium-chromedriver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyp7%2Fdocker-flask-selenium-chromedriver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyp7%2Fdocker-flask-selenium-chromedriver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tonyp7","download_url":"https://codeload.github.com/tonyp7/docker-flask-selenium-chromedriver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tonyp7%2Fdocker-flask-selenium-chromedriver/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259043762,"owners_count":22797159,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chromedriver","docker","docker-compose","docker-image","flask","python","selenium"],"created_at":"2024-10-10T13:37:03.697Z","updated_at":"2025-06-10T09:03:46.600Z","avatar_url":"https://github.com/tonyp7.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Containerized Selenium/Chromedriver running on Python and Flask \n \nThis is a docker image that comes pre-installed with a Python `Flask` web application that can run `Selenium` with `Chromedriver`.\n\n# Why?\n\nI needed to do some automated tests with Selenium. In my experience Selenium and Chromedriver are finicky to setup and \nas such benefit greatly from being containerized.\nIn addition, I wanted to be able to trigger these tests through http calls, which makes the whole system very easy to use.\nAnd thus, docker-flask-selenium-chromedriver was born.\n\n# How to use it?\n\nThe image comes with a docker-compose yml and as such you can simply start the image with the following command:\n\n```console\ncd 3.12-slim\ndocker compose up\n```\n\nBy default, the web server will run on port 8000 and there's a /test endpoint that connects to [httpbin](https://httpbin.org/html) and returns OK if it was able to read the H1 tag.\n\ne.g. you can confirm by running:\n\n```console\ncurl 127.0.0.1:8000/test\nOK\n```\n\n# Image build\n\nThe image is based on `python-slim` image, which itself is based on `debian:bookworm-slim`. It adds:\n\nInstalled from apt:\n - chromium\n - chromium-driver\n \nInstalled from pip through requirements.txt\n - flask\n - gunicorn\n - selenium\n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonyp7%2Fdocker-flask-selenium-chromedriver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftonyp7%2Fdocker-flask-selenium-chromedriver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftonyp7%2Fdocker-flask-selenium-chromedriver/lists"}