progress
This commit is contained in:
+12
-17
@@ -1,29 +1,24 @@
|
||||
FROM python:3.10-slim
|
||||
|
||||
WORKDIR /
|
||||
COPY docker_dev/executor/requirements.txt /
|
||||
|
||||
RUN pip install --upgrade pip
|
||||
RUN pip install -r /requirements.txt
|
||||
ARG FROM_DIR=docker_dev/trading/executor
|
||||
|
||||
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/executor/.creds /.creds
|
||||
COPY ${FROM_DIR}/.creds /.creds
|
||||
|
||||
|
||||
COPY ${FROM_DIR}/run_executor.sh /run_executor.sh
|
||||
RUN chmod +x /run_executor.sh
|
||||
|
||||
RUN mkdir /logs
|
||||
|
||||
WORKDIR /
|
||||
SHELL ["/bin/bash", "-c"]
|
||||
ENV PYTHONPATH=/
|
||||
ENTRYPOINT [ "/run_executor.sh" ]
|
||||
|
||||
# default config
|
||||
# ENV CONFIG=http://cloud16.cvtt.vpn:6789/apps/cvtt
|
||||
|
||||
CMD [ \
|
||||
"python3.10", \
|
||||
"cvttpy/apps/executor_app.py", \
|
||||
"--config=http://cloud16.cvtt.vpn:6789/apps/cvtt", \
|
||||
"--admin_port=7220", \
|
||||
"--active_exchanges=COINBASE_AT", \
|
||||
"--credentials_file=/.creds", \
|
||||
"--log_file=/logs/%T.EXECUTOR_APP.log" \
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user