29 lines
610 B
Docker
29 lines
610 B
Docker
FROM python:3.9-slim
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
RUN apt-get update \
|
|
&& apt-get -y install git build-essential libssl-dev \
|
|
&& apt-get clean \
|
|
&& pip install --upgrade pip
|
|
|
|
RUN pip3 install Cython numpy
|
|
|
|
# Prepare environment
|
|
RUN mkdir /jesse-docker
|
|
WORKDIR /jesse-docker
|
|
|
|
# Install TA-lib
|
|
COPY docker_build_helpers/* /tmp/
|
|
RUN cd /tmp && /tmp/install_ta-lib.sh && rm -r /tmp/*ta-lib*
|
|
ENV LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
|
|
|
|
# Install dependencies
|
|
COPY requirements.txt /jesse-docker
|
|
RUN pip3 install -r requirements.txt
|
|
|
|
# Build
|
|
COPY . /jesse-docker
|
|
RUN pip3 install -e .
|
|
|
|
WORKDIR /home
|