How to build an Image using Docker API Python Client? - Stack Overflow
python - Which DockerImage to Run? - Stack Overflow
What's the best docker image to have a python environment so I could run my scripts on there instead of on Windows? I'd prefer not to use a VM.
Why we dropped Docker for Python environments
Videos
I m not sure if I well understood your question, but I think you want to have 1 docker with Google Chrome, Google Driver and python3 on the same docker right ?
I didn't know about Google Chrome on a docker, just about selenium web driver, but that won't change the answer.
If you know how to install this with command lines, you cant make a FROM ubuntu:latest and then add lines like : RUN apt-get update;apt-get install "your_package". (the apt-get update is very important if you want to install things).
Your Dockerfile can look like this:
FROM ubutu:latest
RUN apt-get update;apt-get install iputils-ping -y; #(that s an example)
Then you ll just have to install python like on your computer with the command apt install python3.10 for example.
Hope I helped you ;)
You started in the right direction. But a few things that will help.
Don't use the tag "latest" for anything other than testing on your local machine. Latest, implies the "latest" image from the registry but isn't guaranteed to be any single version. Instead pick a version tag and stick to that or update it if you need something newer, AVOID latest.
Install specific versions with your package manager as well, for pretty much the same reasons as above.
In my time helping people with container issues at cycle.io, I've seen using latest tags wreak havoc on programs that accidentally use a "newer" image than expected.
Good luck, hope this helps.