From ad5bbc3c10da747717097675b89951949cf8a6bb Mon Sep 17 00:00:00 2001 From: moshferatu Date: Fri, 19 Jan 2024 08:43:47 -0800 Subject: [PATCH] Update Dockerfile to run backtest scheduler in container --- Dockerfile | 9 +++++++-- requirements.txt | 6 +++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 836cbc5..cb7649b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,10 @@ -FROM python:3.10 +FROM python:3.12 +COPY backtest_scheduler.py . COPY download_spx_quotes.py . +COPY run_backtest.py . COPY requirements.txt . RUN pip install -r requirements.txt -CMD ["python", "./download_spx_quotes.py"] \ No newline at end of file +RUN pip install --index-url https://dev.moshington.com/api/packages/moshferatu/pypi/simple/ backtesting +RUN pip install --index-url https://dev.moshington.com/api/packages/moshferatu/pypi/simple/ database +RUN pip install --index-url https://dev.moshington.com/api/packages/moshferatu/pypi/simple/ discord-messaging +CMD ["python", "./backtest_scheduler.py"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index b71f29f..45c51fc 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,9 @@ pandas paramiko +plotly +psycopg2 python-dotenv pytz -schedule \ No newline at end of file +requests +schedule +sqlalchemy \ No newline at end of file