docker_dev/quant/Dockerfile
2024-01-19 17:14:02 -05:00

32 lines
675 B
Docker

FROM python:3.10-slim
WORKDIR /
COPY docker_dev/quant/requirements.txt /
RUN pip install --upgrade pip
RUN pip install -r /requirements.txt
COPY cvttpy /cvttpy
COPY docker_dev/quant/.creds /.creds
RUN mkdir /logs
ENV PYTHONPATH=/
# default config
ENV CONFIG=http://cloud16.cvtt.vpn:6789/apps/cvtt
ENV BOOK_ID=CVTT_CLD17_BK01
CMD [ \
"python3.10", \
"cvttpy/apps/quant_app.py", \
"--config=http://cloud16.cvtt.vpn:6789/apps/cvtt", \
"--credentials_file=/.creds", \
"--active_exchanges=COINBASE_AT", \
"--instruments=COINBASE:PAIR-BTC-USD", \
"--book=CVTT_CLD17_BK01", \
"--admin_port=7221", \
"--log_file=/logs/%T.QUANT.log" \
]