Create container:
docker run -p 4444:4444 -p 5900 -d . --name firefox-headless-selenium-python
docker exec firefox-headless-selenium-python bash
With docker compose:
docker-compose exec selenium python3 /app/scripts/example_test.py
vinagre localhost:5900 # pass 'secret'
In docker hub https://hub.docker.com/r/juusechec/firefox-headless-selenium-python