This commit is contained in:
2024-08-22 18:30:09 -04:00
parent 8e6f3327e5
commit 6e08bf1cc1
3 changed files with 97 additions and 25 deletions
+12 -24
View File
@@ -1,36 +1,24 @@
FROM python:3.10-slim
WORKDIR /
COPY docker_dev/quant/requirements.txt /
RUN pip install --upgrade pip
RUN pip install -r /requirements.txt
RUN apt-get update && apt-get install -y \
apt-utils \
libpq-dev \
build-essential
ARG FROM_DIR=docker_dev/trading/quant
COPY ${FROM_DIR}/requirements.txt /
RUN pip install --upgrade pip --root-user-action=ignore
RUN pip install -r /requirements.txt --root-user-action=ignore
COPY cvttpy /cvttpy
COPY docker_dev/quant/.creds /.creds
COPY ${FROM_DIR}/.creds /.creds
COPY ${FROM_DIR}/run_quant.sh /run_quant.sh
RUN chmod +x /run_quant.sh
RUN mkdir /logs
WORKDIR /
SHELL ["/bin/bash", "-c"]
ENV PYTHONPATH=/
ENTRYPOINT [ "/run_quant.sh" ]
# 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" \
]