Python + Chrome +Chrome Driver Docker Image
Dockerfile url: https://github.com/includeno/selenium_chrome_python_docker
The initial purpose of this docker image is to set up distributed spider applications by selenium framework.
Work dir:/tools
Chromedriver position:/tools/chromedriver
For example: webdriver.Chrome(chrome_options=option, executable_path='/tools/chromedriver')
The example Dockerfile of runner is :
#example
FROM includeno/pythonchrome:python3.9.latest
#flask server port
EXPOSE 8888
#clone code from repository
RUN /bin/sh -c 'cd /app && git clone [email protected]'
#install python packages
RUN /bin/sh -c 'cd /app/xxxxxxx && python -m pip install -r requirements.txt '
CMD ["python", "/app/xxxxxxx/flaskserver.py"]
Content type
Image
Digest
sha256:4b60ae878…
Size
363.8 MB
Last updated
over 3 years ago
docker pull includeno/pythonchrome:3.7.chrome110.0.5481.77