2017-08-27 15:15:00 +00:00
|
|
|
FROM python:3.6.2
|
|
|
|
|
2017-09-03 14:35:58 +00:00
|
|
|
RUN apt-get update
|
2017-09-30 19:00:14 +00:00
|
|
|
RUN apt-get -y install build-essential
|
|
|
|
|
|
|
|
# Install TA-lib
|
2017-09-03 14:35:58 +00:00
|
|
|
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz
|
|
|
|
RUN tar zxvf ta-lib-0.4.0-src.tar.gz
|
|
|
|
RUN cd ta-lib && ./configure && make && make install
|
|
|
|
ENV LD_LIBRARY_PATH /usr/local/lib
|
|
|
|
|
2017-09-30 19:00:14 +00:00
|
|
|
# Prepare environment
|
|
|
|
RUN mkdir /freqtrade
|
|
|
|
COPY . /freqtrade/
|
2017-08-27 15:15:00 +00:00
|
|
|
WORKDIR /freqtrade
|
|
|
|
|
2017-09-30 19:00:14 +00:00
|
|
|
# Install dependencies and execute
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
RUN pip install -e .
|
|
|
|
CMD ["freqtrade"]
|