19 lines
1004 B
Docker
19 lines
1004 B
Docker
FROM eoelab.org:1027/eoeair/jupyter:py-c
|
|
|
|
USER root
|
|
|
|
RUN apt-get update && apt-get --yes --no-install-recommends install curl gnupg && \
|
|
curl -sS https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg && \
|
|
sh -c 'echo "deb [signed-by=/usr/share/keyrings/google-chrome.gpg] 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 |