As a pio User, i wanted to contribute to this community.
I created a docker image for automation testing. you can found it here
https://hub.docker.com/r/theionbatteries/platformio_docker_linux_amd64
This image can be used as a base image for further Integration:
example: github self hosted runner-> container created by runner on workflow
https://hub.docker.com/r/theionbatteries/platformio_docker_linux_amd64-github-runner
Have fun !