adapt Dockerfile for new project structure

This commit is contained in:
gcarq 2017-09-30 21:00:14 +02:00
parent 1eee0c91bf
commit 8057333501

View File

@ -1,17 +1,20 @@
FROM python:3.6.2
RUN pip install numpy
RUN apt-get update
RUN apt-get -y install build-essential
RUN apt-get -y install build-essential
# Install TA-lib
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
RUN mkdir -p /freqtrade
# Prepare environment
RUN mkdir /freqtrade
COPY . /freqtrade/
WORKDIR /freqtrade
ADD ./requirements.txt /freqtrade/requirements.txt
RUN pip install -r requirements.txt
ADD . /freqtrade
CMD python main.py
# Install dependencies and execute
RUN pip install -r requirements.txt
RUN pip install -e .
CMD ["freqtrade"]