diff --git a/docker/Dockerfile.test b/docker/Dockerfile.test new file mode 100644 index 0000000..5448ef0 --- /dev/null +++ b/docker/Dockerfile.test @@ -0,0 +1,11 @@ +# NAS 测试镜像:复用现成 with-backtester 环境,补 pytest +# with-backtester 已含 py3.10/pandas2.3.3/numpy2.2.6/TA-Lib0.6.8/pyarrow/polars + vnpy源码 +# 只缺 pytest,此处薄层补齐。代码通过 docker run -v 挂载(不 bake 进镜像,便于代码更新) +FROM sanguo_vnpy_v2:with-backtester + +RUN pip install --no-cache-dir -q -i https://pypi.tuna.tsinghua.edu.cn/simple \ + pytest==9.1.1 pytest-asyncio==1.4.0 pytest-mock==3.15.1 \ + akshare==1.18.64 baostock==0.9.3 scipy==1.15.3 \ + bullet-trade==0.9.2 + +WORKDIR /code