Skip to content

Commit

Permalink
update docker base image and project dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
seekersoftec committed Aug 3, 2024
1 parent 75262d2 commit e4619a9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 30 deletions.
25 changes: 2 additions & 23 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,38 +1,16 @@
FROM rust:slim-buster

ENV USER=root
ENV PYTHON_VERSION=3.11.3
FROM ghcr.io/nautechsystems/nautilus_trader:latest

# Install system dependencies
RUN apt-get update && \
apt-get install -y \
sudo \
build-essential \
clang \
zlib1g-dev \
libncurses5-dev \
libgdbm-dev \
libnss3-dev \
libssl-dev \
libreadline-dev \
libffi-dev \
libsqlite3-dev \
wget \
curl \
libbz2-dev \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /tmp
RUN wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz \
&& tar -xzf Python-$PYTHON_VERSION.tgz \
&& cd Python-$PYTHON_VERSION \
&& ./configure --enable-optimizations \
&& make -j $(nproc) \
&& make altinstall

# ENV PATH="/usr/local/bin:$PATH"
RUN ln -s /usr/local/bin/python3.11 /usr/local/bin/python

# Set the working directory
WORKDIR /app

Expand All @@ -42,6 +20,7 @@ COPY . .
# Install application system dependencies (e.g., TA-Lib)
RUN bash scripts/install-talib.sh
# RUN bash scripts/install-pygame.sh
RUN curl -sSL https://install.python-poetry.org | python -

# Install package
RUN python -m pip install -e .
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ build:
docker build -f Dockerfile -t trade_flow .

run:
docker run -it trade_flow trade_flow-platform
docker run -it trade_flow trade_flow-environment

shell:
docker exec -it trade_flow sh
docker exec -it trade_flow-environment sh

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ TradeFlow is an intelligent trading bot designed to streamline your trading expe

1. **Prerequisites:**

- Python (<= 3.11.9)
- Python (>=3.10)
- ta-lib, nautilus_trader
- pandas, tensorflow, ray
- pandas, pytorch, ray
- flask, metatrader-sockets-client

1. **Clone the Repository:**
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "trade_flow"
version = "0.0.1"
description = "TradeFlow is an intelligent trading bot that leverages automation and analysis to navigate markets for you"
readme = "README.md"
requires-python = "<=3.11.9"
requires-python = ">=3.10"
keywords = ["algo", "trading", "trade_flow", "deep learning", "machine learning", "ai"]
classifiers = [
"Programming Language :: Python :: 3",
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ta-lib # Python wrapper for TA-lib (native) library
pandas_ta

# Algorithms
scikit-learn==1.5
scikit-learn # ==1.5
lightgbm>=4
# tensorflow==2.14.1 # tensorflow>=2.16.*
# gymnasium # gymnasium[all] | gymnasium==0.26.1
Expand All @@ -19,7 +19,7 @@ lightgbm>=4
# keras
# keras-tcn
# gym-anytrading
stable-baselines3[extra]
stable-baselines3 # stable-baselines3[extra]
ray[all] # ==2.5.1
seaborn # if diagrams are turned on

Expand Down

0 comments on commit e4619a9

Please sign in to comment.