jupyter/scrpy/Dockerfile

19 lines
933 B
Docker
Raw Normal View History

2024-09-26 02:23:46 +08:00
FROM eoelab.org:1027/ben0i0d/jupyter:py-c
2024-03-17 15:40:43 +08:00
USER root
2024-04-12 11:00:49 +08:00
2024-04-14 19:58:36 +08:00
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 - && \
2024-03-17 15:40:43 +08:00
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
2024-04-14 19:58:36 +08:00
apt-get update && apt-get --yes --no-install-recommends install google-chrome-stable && \
2024-03-17 15:40:43 +08:00
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 && \
2024-04-14 19:58:36 +08:00
unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
2024-03-17 15:40:43 +08:00
USER ${NB_UID}
2024-04-14 19:58:36 +08:00
# Install Python 3 packages
RUN pip install 'beautifulsoup4' 'requests' 'selenium' 'schedule' && \
pip cache purge