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:/app
Chromedriver position:/tools/chromedriver
For example: (before starting SpringBoot Application)
System.setProperty("webdriver.chrome.driver", "/tools/chromedriver");//linux
The example Dockerfile of runner is :
#example
FROM includeno/javachrome:openjdk-11.0.10-jdkchrome89.0.4389.114
EXPOSE 8080
WORKDIR /app
#add jar file
ADD seleniumdemo-1.0.jar /app/application.jar
#指定容器启动程序及参数 <ENTRYPOINT> "<CMD>"
#default port of tomcat is 8080
ENTRYPOINT ["java","-jar","/app/application.jar"]
Content type
Image
Digest
Size
654.2 MB
Last updated
over 4 years ago
docker pull includeno/javachrome