Add phantomjs

This commit is contained in:
Marian Steinbach 2018-05-03 11:29:21 +02:00
parent e15051952e
commit c21511cd62
1 changed files with 6 additions and 0 deletions

View File

@ -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"]