stable/Dockerfile

27 lines
767 B
Docker
Raw Normal View History

2018-08-12 11:59:50 +00:00
FROM python:3.7.0-slim-stretch
# Install TA-lib
RUN apt-get update && apt-get -y install curl build-essential && apt-get clean
RUN curl -L http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz | \
tar xzvf - && \
cd ta-lib && \
sed -i "s|0.00000001|0.000000000000000001 |g" src/ta_func/ta_utility.h && \
./configure && make && make install && \
cd .. && rm -rf ta-lib
2017-09-03 14:35:58 +00:00
ENV LD_LIBRARY_PATH /usr/local/lib
# Prepare environment
RUN mkdir /freqtrade
2017-08-27 15:15:00 +00:00
WORKDIR /freqtrade
# Install dependencies
2018-09-17 18:49:41 +00:00
COPY requirements.txt /freqtrade/
RUN pip install numpy --no-cache-dir \
&& pip install future \
&& pip install -r requirements.txt --no-cache-dir
# Install and execute
COPY . /freqtrade/
RUN pip install -e . --no-cache-dir
ENTRYPOINT ["freqtrade"]