forked from TA-Lib/ta-lib-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (36 loc) · 965 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Dockerfile for TA-Lib. To build:
#
# docker build --rm -t talib -f Dockerfile .
#
# To run:
#
# docker run --rm -it talib bash
#
FROM python:3.6
RUN apt-get update && apt-get install -y \
gfortran \
libfreetype6-dev \
libhdf5-dev \
liblapack-dev \
libopenblas-dev \
libpng-dev \
&& rm -rf /var/lib/apt/lists/* \
&& curl -L http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \
| tar xvz \
&& cd /ta-lib \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& pip install --upgrade pip
WORKDIR /TA-Lib
COPY . .
RUN python setup.py egg_info \
&& python setup.py --help \
&& pip install -e . \
&& pip -V \
&& pip freeze \
&& pip show numpy cython TA_Lib \
&& python -c 'import numpy; import talib; close = numpy.random.random(100); output = talib.SMA(close); print(output)' \
&& pip install -r requirements_dev.txt \
&& pip install -r requirements_test.txt \
&& nosetests -w .