4
This commit is contained in:
parent
fc6dc125b3
commit
196c2cde15
22
Dockerfile
22
Dockerfile
@ -1,7 +1,27 @@
|
|||||||
FROM python:3.8-slim
|
FROM python:3.8-slim
|
||||||
ENV PYTHONIOENCODING=utf-8
|
ENV PYTHONIOENCODING=utf-8
|
||||||
ENV TIME_ZONE Asia/Shanghai
|
ENV TIME_ZONE Asia/Shanghai
|
||||||
RUN sudo apt-get install python3-pip python3-setuptools python3-dev python3-wheel
|
|
||||||
|
RUN sudo apt-get -y install gcc build-essential
|
||||||
|
RUN wget -O inst_conda.sh "https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh" \
|
||||||
|
&& /bin/bash inst_conda.sh -b \
|
||||||
|
&& rm inst_conda.sh \
|
||||||
|
&& ./anaconda3/bin/conda init \
|
||||||
|
&& source ~/.bashrc \
|
||||||
|
&& conda create -n quantra python=3.6.8 -y \
|
||||||
|
&& conda activate quantra
|
||||||
|
|
||||||
|
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \
|
||||||
|
&& sudo tar -xzf ta-lib-0.4.0-src.tar.gz \
|
||||||
|
&& sudo rm ta-lib-0.4.0-src.tar.gz \
|
||||||
|
&& cd ta-lib/ \
|
||||||
|
&& sudo ./configure --prefix=/usr \
|
||||||
|
&& sudo make \
|
||||||
|
&& sudo make install \
|
||||||
|
&& cd ~ \
|
||||||
|
&& sudo rm -rf ta-lib/ \
|
||||||
|
&& pip install ta-lib
|
||||||
|
|
||||||
RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ binance binance_connector numpy requests schedule TA_Lib
|
RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ binance binance_connector numpy requests schedule TA_Lib
|
||||||
WORKDIR /opt/
|
WORKDIR /opt/
|
||||||
COPY ["./", "/opt/"]
|
COPY ["./", "/opt/"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user