diff --git a/vn.docker/Dockerfile b/vn.docker/Dockerfile index f51562cc..83ef834b 100644 --- a/vn.docker/Dockerfile +++ b/vn.docker/Dockerfile @@ -37,7 +37,6 @@ RUN echo "开始配置系vnpy环境" \ && apt-get clean \ && echo "安装 ta-lib 内核" \ && cd /opt \ -# && wget -t 0 http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \ && wget -t 0 http://kent.dl.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz \ && tar -zxvf ta-lib-0.4.0-src.tar.gz \ && rm ta-lib-0.4.0-src.tar.gz \ @@ -64,6 +63,7 @@ RUN echo "开始配置系vnpy环境" \ && conda clean -ay \ && echo "安装结束" -WORKDIR /srv/vnpy/vn.trader +WORKDIR /srv/vnpy -ENTRYPOINT python /srv/vnpy/vn.trader/vtServer.py \ No newline at end of file +# 暂时不设置入口点,否则不能使用 -it 交互模式 +# ENTRYPOINT python /srv/vnpy/vn.trader/vtServer.py \ No newline at end of file diff --git a/vn.docker/server_vnpy.sh b/vn.docker/server_vnpy.sh index 0938f63b..4c5490bf 100755 --- a/vn.docker/server_vnpy.sh +++ b/vn.docker/server_vnpy.sh @@ -6,4 +6,4 @@ docker run --name vnpy --rm \ -v `pwd`/vn.trader/tmp/VT_setting.json:/etc/vnpy/VT_setting.json \ -p 2014:2014 -p 602:602 \ vnpy:latest \ - --VT_setting /etc/vnpy/VT_setting.json + python /srv/vnpy/vn.trader/vtServer.py --VT_setting /etc/vnpy/VT_setting.json