Update Dockerfile to run backtest scheduler in container

This commit is contained in:
moshferatu 2024-01-19 08:43:47 -08:00
parent 9a498f04a0
commit ad5bbc3c10
2 changed files with 12 additions and 3 deletions

View File

@ -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"]
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"]

View File

@ -1,5 +1,9 @@
pandas
paramiko
plotly
psycopg2
python-dotenv
pytz
requests
schedule
sqlalchemy