#TA-LIB with docker container

4 messages · Page 1 of 1 (latest)

frigid niche
#

I am making an application in python that needs ta-lib, i am having a hard time trying to install it on dockerfile. Someone can help me ?

forest summitBOT
#

Project ID: N/A

frigid niche
#

My dockerfile has:

FROM python:3.10.7-slim-bullseye as base

Install dependencies

FROM base as python-deps
RUN apt-get update
&& apt-get -y install build-essential libssl-dev git libffi-dev libgfortran5 pkg-config cmake gcc wget
&& apt-get clean
&& pip install --upgrade pip

Install TA-lib

RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \
tar -xvzf ta-lib-0.4.0-src.tar.gz && \
cd ta-lib/ && \
./configure --prefix=/usr && \
make && \
make install
RUN pip install TA-Lib
RUN rm -R ta-lib ta-lib-0.4.0-src.tar.gz