mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
25 lines
618 B
Docker
25 lines
618 B
Docker
FROM python:3.6.6-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 && \
|
|
./configure && make && make install && \
|
|
cd .. && rm -rf ta-lib
|
|
ENV LD_LIBRARY_PATH /usr/local/lib
|
|
|
|
# Prepare environment
|
|
RUN mkdir /freqtrade
|
|
WORKDIR /freqtrade
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt /freqtrade/
|
|
RUN pip install numpy \
|
|
&& pip install -r requirements.txt
|
|
|
|
# Install and execute
|
|
COPY . /freqtrade/
|
|
RUN pip install -e .
|
|
ENTRYPOINT ["freqtrade"]
|