This repository was archived by the owner on Jun 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 1- FROM cmfatih/phantomjs
1+ FROM python:2.7
22MAINTAINER binux <roy@binux.me>
33
4- # install python
5- RUN apt-get update && \
6- apt-get install -y python python-dev python-distribute python-pip && \
7- apt-get install -y libcurl4-openssl-dev libxml2-dev libxslt1-dev python-lxml python-mysqldb libpq-dev
4+ # install phantomjs
5+ RUN mkdir -p /opt/phantomjs \
6+ && cd /opt/phantomjs \
7+ && wget -O phantomjs.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 \
8+ && tar xavf phantomjs.tar.bz2 --strip-components 1 \
9+ && ln -s /opt/phantomjs/bin/phantomjs /usr/local/bin/phantomjs \
10+ && rm phantomjs.tar.bz2
11+
812
913# install requirements
10- RUN pip install -U pip setuptools
1114RUN pip install --egg 'https://dev.mysql.com/get/Downloads/Connector-Python/mysql-connector-python-2.1.5.zip#md5=ce4a24cb1746c1c8f6189a97087f21c1'
12- ADD requirements.txt /opt/pyspider/requirements.txt
15+ COPY requirements.txt /opt/pyspider/requirements.txt
1316RUN pip install -r /opt/pyspider/requirements.txt
1417
1518# add all repo
You can’t perform that action at this time.
0 commit comments