forked from owocki/pytrader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (33 loc) · 1.1 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM python:2.7
RUN sed -i s@/deb.debian.org/@/mirrors.aliyun.com/@g /etc/apt/sources.list
RUN apt-get clean
RUN apt-get update && apt-get install -y \
gcc \
gettext \
libmariadb-dev libmariadb-dev-compat \
postgresql-client libpq-dev \
sqlite3 \
libblas-dev \
liblapack-dev \
libatlas-base-dev \
gfortran \
cron \
swig \
--no-install-recommends && rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
RUN pip config set global.index-url http://mirrors.aliyun.com/pypi/simple
RUN pip config set install.trusted-host mirrors.aliyun.com
RUN pip install numpy==1.8.2
RUN pip install scipy==0.13.3
RUN pip install matplotlib==1.3.1
RUN pip install nltk==3.4.5
RUN pip install --no-binary :all: psycopg2
COPY requirements.txt /requirements.txt
RUN pip install --no-cache-dir -r /requirements.txt
RUN git clone git://github.com/bayerj/arac.git /root/arac && \
cd /root/arac/ && \
sed -i "s/.*test.*//i" SConstruct && \
scons && \
cp libarac.so /usr/lib/ && \
cd /root/
ENV PYTHONPATH=/root/arac/src/python