Created
June 20, 2020 10:58
-
-
Save nickfox-taterli/1442418ac44bbec34c048383d80ebf02 to your computer and use it in GitHub Desktop.
selenium Dockerfile 基础模板
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:buster | |
RUN apt update && \ | |
apt upgrade -y && \ | |
apt install --no-install-recommends --no-install-suggests -y wget unzip python3 python3-pip && \ | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ | |
dpkg -i google-chrome-stable_current_amd64.deb ; \ | |
apt-get -f -y --no-install-recommends --no-install-suggests install && \ | |
dpkg -i google-chrome-stable_current_amd64.deb && \ | |
rm google-chrome-stable_current_amd64.deb && \ | |
wget https://chromedriver.storage.googleapis.com/76.0.3809.126/chromedriver_linux64.zip && \ | |
unzip chromedriver_linux64.zip && \ | |
rm chromedriver_linux64.zip && \ | |
mv chromedriver /usr/bin/chromedriver && \ | |
apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/* && \ | |
pip3 install selenium | |
================ | |
FROM taterli/selenium-base:buster | |
COPY linode.py /root/linode.py | |
RUN pip3 install aliyun-python-sdk-core-v3 | |
ENTRYPOINT [ "python3", "/root/linode.py" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment