docker 编译 TA-Lib 0.4.19
FROM python:3.8.9
WORKDIR /usr/src/app
#https://nchc.dl.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz
COPY ta-lib-0.4.0-src.tar.gz ./
RUN tar -xzf ta-lib-0.4.0-src.tar.gz \
&& cd ta-lib/ \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& cd .. \
&& rm -rf ta-lib*
&& pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ TA-Lib==0.4.19
docker build -tta-lib:0.4.19 .