Last revision: 29th May 2023.
How to build and run Docker image locally:
# uncomment the platform you are running on
# platform=linux/amd64
platform=linux/arm64
docker buildx build --platform=$platform -t selenium-firefox-headless:latest .
# if you are running Docker Desktop, make sure that the current path ($(pwd))
# is added to the list of trusted directories. Otherwise, you won't be
# able to mount it in the running container:
# Preferences... > Resources > File sharing
docker run --rm \
--platform=$platform \
--volume $(pwd):/tests \
-it selenium-firefox-headless:latest /bin/bash
# run the test below
python main.py
Don't hesitate to file a PR with improvement(s).