Skip to content
This repository was archived by the owner on Jun 10, 2024. It is now read-only.

Commit 124b9f2

Browse files
committed
fix docker build
1 parent 9e6c347 commit 124b9f2

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
FROM cmfatih/phantomjs
1+
FROM python:2.7
22
MAINTAINER 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
1114
RUN 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
1316
RUN pip install -r /opt/pyspider/requirements.txt
1417

1518
# add all repo

0 commit comments

Comments
 (0)