jupyter/BigData/scrpy/Dockerfile
2025-02-20 21:41:34 +08:00

19 lines
932 B
Docker

FROM eoelab.org:1027/eoeair/jupyter:py-c
USER root
RUN apt-get update && apt-get --yes --no-install-recommends install wget curl gnupg && \
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - && \
sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' && \
# install chrome
apt-get update && apt-get --yes --no-install-recommends install google-chrome-stable && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
# install chromedriver
wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip && \
unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
USER ${NB_UID}
# Install Python 3 packages
RUN pip install 'beautifulsoup4' 'requests' 'selenium' 'schedule' && \
pip cache purge