diff --git a/Dockerfile b/Dockerfile index c5fbc93..e8b2411 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,8 +18,14 @@ RUN apt-get update \ && rm chromedriver_linux64.zip \ && apt-get clean +# TODO: move this into the above RUN pip3 install beautifulsoup4==4.6.0 +RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 \ + && tar xjf phantomjs-2.1.1-linux-x86_64.tar.bz2 \ + && mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/ \ + && rm -rf phantomjs-2.1.1-linux-x86_64 + ADD spider.py / ENTRYPOINT ["python3", "/spider.py"]