Skip to content

Commit

Permalink
Update Dockerfile-talib_alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
pkjmesra authored Dec 29, 2023
1 parent 798c881 commit 2509842
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile-talib_alpine
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
FROM python:3.11.3-alpine as python-builder

FROM python:3.7.3-alpine as python-builder

ENV PYTHON_VERSION 3.7.7-r1
ENV PYTHON_TA_LIB_VERSION 0.4.19
ENV PYTHON_VERSION 3.11.6-r0
ENV PYTHONUNBUFFERED 1

USER root
Expand All @@ -17,13 +15,15 @@ RUN apk add --no-cache python3=${PYTHON_VERSION} \
&& curl -L -O 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/ \
&& wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O config.guess \
&& wget 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD' -O config.sub \
&& sed -i 's/^#define TA_IS_ZERO(v).*$/#define TA_IS_ZERO(v) (((-0.000000000000000001)<v)\&\&(v<0.000000000000000001))/' src/ta_func/ta_utility.h \
&& sed -i 's/^#define TA_IS_ZERO_OR_NEG(v).*$/#define TA_IS_ZERO_OR_NEG(v) (v<0.000000000000000001)/' src/ta_func/ta_utility.h \
&& ./configure --prefix=/usr \
&& make \
&& sudo make install \
&& make install \
&& pip3 install setuptools numpy \
&& pip3 install ta-lib==${PYTHON_TA_LIB_VERSION} \
&& pip3 install ta-lib \
&& apk del .build-deps \
&& rm -rf /root/.cache \
/tmp/* \
Expand Down

0 comments on commit 2509842

Please sign in to comment.