fix: build TA-Lib from source in ML Dockerfile

This commit is contained in:
Marko Djordjevic 2026-02-16 14:58:07 +01:00
parent 2cde02b722
commit 08bd9625ae

View file

@ -1,12 +1,19 @@
FROM python:3.11-slim
# Install system dependencies including TA-Lib C library
# Install system dependencies and build TA-Lib from source
RUN apt-get update && apt-get install -y \
build-essential \
wget \
libta-lib-dev \
libpq-dev \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \
&& tar -xzf ta-lib-0.4.0-src.tar.gz \
&& cd ta-lib/ \
&& ./configure --prefix=/usr \
&& make \
&& make install \
&& cd .. \
&& rm -rf ta-lib ta-lib-0.4.0-src.tar.gz
# Set working directory
WORKDIR /app