forked from sriyegna/Pikaptcha
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (15 loc) · 679 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (15 loc) · 679 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM phusion/baseimage:latest
MAINTAINER newjanson
WORKDIR /usr/src/app
RUN apt-get update
RUN apt-get install -y chromium-chromedriver python python-pip git build-essential libssl-dev libffi-dev python-dev tar wget
RUN pip install --upgrade pip
COPY . /usr/src/app/
RUN wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 \
&& tar xvfj phantomjs-2.1.1-linux-x86_64.tar.bz2 \
&& mv phantomjs-2.1.1-linux-x86_64/bin/phantomjs /usr/bin \
&& rm -rf phantomjs-2.1.1-linux-x86_64*
RUN for r in `cat requirements.txt`; do pip install $r; done
RUN pip install .
ENV PATH=$PATH:/usr/lib/chromium-browser/
ENTRYPOINT ["pikaptcha"]