fix reqs
This commit is contained in:
parent
2412a633bd
commit
53834782ca
36
Dockerfile
36
Dockerfile
@ -2,41 +2,7 @@ FROM dockerproxy.com/veejar/python-ta-lib
|
|||||||
ENV PYTHONIOENCODING=utf-8
|
ENV PYTHONIOENCODING=utf-8
|
||||||
ENV TIME_ZONE Asia/Shanghai
|
ENV TIME_ZONE Asia/Shanghai
|
||||||
|
|
||||||
# # 更新apt-get源
|
RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -r requirements.txt
|
||||||
# RUN cp /etc/apt/sources.list /etc/apt/sources.list.bak && \
|
|
||||||
# echo > /etc/apt/sources.list && \
|
|
||||||
# cat /etc/apt/sources.list && \
|
|
||||||
# echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" >/etc/apt/sources.list && \
|
|
||||||
# echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free" >>/etc/apt/sources.list && \
|
|
||||||
# echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free" >>/etc/apt/sources.list && \
|
|
||||||
# echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free" >>/etc/apt/sources.list
|
|
||||||
|
|
||||||
# RUN apt-get update && apt-get upgrade -y
|
|
||||||
|
|
||||||
# ENV APT_PKG_TEMPORARY="build-essential autoconf automake autotools-dev libopenblas-dev python3-dev"
|
|
||||||
# ENV APT_PKG="python3 python3-pip python3-scipy python3-numpy python3-pandas python-is-python3"
|
|
||||||
# ENV PYPI_PKG="TA-Lib numpy pandas"
|
|
||||||
# ENV DEBIAN_FRONTEND=noninteractive
|
|
||||||
|
|
||||||
# COPY ta-lib ./ta-lib
|
|
||||||
|
|
||||||
# RUN apt-get update && apt-get upgrade -y && \
|
|
||||||
# apt-get install -y ${APT_PKG_TEMPORARY} ${APT_PKG} && \
|
|
||||||
# ln -s /usr/include/locale.h /usr/include/xlocale.h && \
|
|
||||||
# # compile TA-Lib library
|
|
||||||
# cd ta-lib && \
|
|
||||||
# ./configure --prefix=/usr; \
|
|
||||||
# make && \
|
|
||||||
# make install && \
|
|
||||||
# cd .. && \
|
|
||||||
# rm -rf ta-lib && \
|
|
||||||
# \
|
|
||||||
# pip3 install --no-cache-dir $PYPI_PKG && \
|
|
||||||
# apt-get autoremove -y ${APT_PKG_TEMPORARY} && \
|
|
||||||
# rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
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 requests schedule
|
|
||||||
|
|
||||||
WORKDIR /opt/
|
WORKDIR /opt/
|
||||||
COPY ["./", "/opt/"]
|
COPY ["./", "/opt/"]
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
binance==0.3
|
binance==0.3
|
||||||
binance_connector==3.1.0
|
binance_connector==3.1.0
|
||||||
|
DBUtils==3.0.2
|
||||||
|
mplfinance==0.12.9b7
|
||||||
numpy==1.23.4
|
numpy==1.23.4
|
||||||
|
pandas==1.5.1
|
||||||
|
PyMySQL==1.0.2
|
||||||
requests==2.28.1
|
requests==2.28.1
|
||||||
schedule==1.1.0
|
schedule==1.1.0
|
||||||
TA_Lib==0.4.26
|
TA_Lib==0.4.26
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user