1.dockerfile
FROM daocloud.io/library/ubuntu
RUN apt update -y && apt install python -y && apt install python-pip -y
RUN pip install selenium
2.将要执行的python脚本放入镜像,并使用镜像执行
docker run -v $PWD/:/root -w /root selenium-python python test.py
1.dockerfile
FROM daocloud.io/library/ubuntu
RUN apt update -y && apt install python -y && apt install python-pip -y
RUN pip install selenium
2.将要执行的python脚本放入镜像,并使用镜像执行
docker run -v $PWD/:/root -w /root selenium-python python test.py
本文标题:docker构建selenium环境
本文链接:https://www.haomeiwen.com/subject/epkbaxtx.html
网友评论