The Docker image provides a reproducible CPU development environment for tests, benchmark scripts, and public-data validation runs. It is intended for local reproduction and contributor onboarding, not for live trading.
docker build -t ml-quant-trading .docker run --rm ml-quant-trading make testdocker run --rm ml-quant-trading make lintdocker run --rm ml-quant-trading make paper CONFIG=configs/small.yamldocker run --rm ml-quant-trading make benchmarkThe default image uses CPU PyTorch from the Python package resolver. For GPU benchmarks, use a host environment with the correct NVIDIA driver, CUDA runtime, and PyTorch build, or extend this Dockerfile from an NVIDIA CUDA base image.
docker run --rm ml-quant-trading \
python scripts/public_data_validation.py \
--source synthetic \
--models equal_weight,momentum_20,alpha101_meanFor yfinance runs, the container needs network access:
docker run --rm ml-quant-trading \
python scripts/public_data_validation.py \
--source yfinance \
--preset us-large-100 \
--max-tickers 100The generated reports stay inside the container unless you mount a host directory:
mkdir -p artifacts/public_data_validation
docker run --rm \
-v "$PWD/artifacts:/workspace/ml-quant-trading/artifacts" \
ml-quant-trading \
python scripts/public_data_validation.py --source syntheticThe VS Code / Codespaces Dev Container reuses the root Dockerfile and then
reinstalls the mounted workspace in editable mode. This keeps local Docker and
Dev Container setup aligned.