From c21511cd62da250661462cb8d04ee24164a0283f Mon Sep 17 00:00:00 2001 From: Marian Steinbach Date: Thu, 3 May 2018 11:29:21 +0200 Subject: [PATCH] Add phantomjs --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) 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"]