Skip to content

Instantly share code, notes, and snippets.

@nickfox-taterli
Created June 20, 2020 10:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickfox-taterli/1442418ac44bbec34c048383d80ebf02 to your computer and use it in GitHub Desktop.
Save nickfox-taterli/1442418ac44bbec34c048383d80ebf02 to your computer and use it in GitHub Desktop.
selenium Dockerfile 基础模板
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