-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathDockerfile
More file actions
44 lines (36 loc) · 913 Bytes
/
Copy pathDockerfile
File metadata and controls
44 lines (36 loc) · 913 Bytes
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
FROM debian:jessie
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \
curl \
automake \
gcc \
g++ \
make \
libtool \
ca-certificates \
python-pip \
python-dev \
python-numpy \
bzip2 \
git \
pkg-config \
liburiparser-dev \
vim
RUN mkdir -p /cosr/urlparse4
# Upgrade pip
RUN pip install --upgrade --ignore-installed pip
ADD requirements.txt /requirements.txt
# Install Cython first to be able to install other dependencies from git
RUN grep -i "^Cython\=" /requirements.txt | xargs -n1 pip install
RUN pip install -r requirements.txt
RUN cd /tmp && \
git clone --recursive https://github.com/mitghi/cyuri && \
cd ./cyuri/liburi && \
autoreconf -i && \
./configure --prefix=/usr/local && \
make && \
make install && \
cd .. && \
CPPFLAGS=-I/usr/local/include/liburi make && \
cp cyuri.so /usr/lib/python2.7/ && \
ldconfig
ADD Makefile /Makefile