When installing TA-Lib in a Dockerfile which inherits from python:3.10.13-slim-bookworm I am using these Dockerfiles as examples however still am getting errors:
https://dev.to/lazypro/build-a-small-ta-lib-container-image-4ca1
Example errors I am seeing:
Problem with the CMake installation, aborting build. CMake executable is cmake
CMake was unable to find a build program corresponding to "Ninja".
Unit test failures:
Could not build wheels for patchelf, which is required to install pyproject.toml-based projects
FAIL: set-interpreter-long.sh
FAIL: set-rpath.sh
FAIL: add-rpath.sh
How do I install TA-Lib into a Dockerfile?
I didn't try installing anaconda and using conda to install TA-Lib but that might have been easier, as mentioned here: https://blog.quantinsti.com/install-ta-lib-python/
Instead here is my full Dockerfile. In particular I think it was the various pip and apt-get installs which allowed my TA-Lib make/install to succeed: