-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
25 lines (18 loc) · 871 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM ubuntu:14.04
RUN apt-get update && apt-get install -y build-essential \
software-properties-common \
python-software-properties \
python-dev \
python-pip \
wget libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev
ADD . /app
WORKDIR /app
RUN cd /usr/local/share && \
tar xjf /app/phantomjs-2.1.1-linux-x86_64.tar.bz2 && \
ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/share/phantomjs && \
ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/local/bin/phantomjs && \
ln -s /usr/local/share/phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin/phantomjs
RUN apt-get remove -y python-requests && apt-get install -y python-pip && pip install --upgrade pip
RUN phantomjs -v
RUN pip install -r requirements.txt && pip install --upgrade requests
ENTRYPOINT [ "python" ]