Created
November 27, 2020 14:02
-
-
Save vittorio-nardone/1e02a550b4e6ef8b830f00800fba7e82 to your computer and use it in GitHub Desktop.
Docker image to run Selenium and Firefox on Raspberry PI (python web scraping)
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 arm32v7/python:3.8 | |
RUN apt-get -y update | |
RUN apt-get -y upgrade | |
# Install Firefox and Selenium | |
RUN apt-get install -y firefox-esr | |
RUN wget https://github.com/mozilla/geckodriver/releases/download/v0.23.0/geckodriver-v0.23.0-arm7hf.tar.gz | |
RUN tar -xf geckodriver-v0.23.0-arm7hf.tar.gz | |
RUN rm geckodriver-v0.23.0-arm7hf.tar.gz | |
RUN chmod a+x geckodriver | |
RUN mv geckodriver /usr/local/bin/ | |
RUN apt-get install -y xvfb | |
RUN pip install selenium==3.141.0 | |
RUN pip install pyvirtualdisplay | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment