docker_dev/executor/Dockerfile
2024-01-19 15:07:12 -05:00

30 lines
691 B
Docker

FROM python:3.10-slim
WORKDIR /
COPY docker_dev/executor/requirements.txt /
RUN pip install --upgrade pip
RUN pip install -r /requirements.txt
COPY cvttpy /cvttpy
COPY docker_dev/executor/.creds /.creds
RUN mkdir /logs
ENV PYTHONPATH=/
# default config
ENV CONFIG=http://cloud16.cvtt.vpn:6789/apps/cvtt
CMD [ \
"python3.10", \
"cvttpy/apps/executor_app.py", \
"--config=${CONFIG}", \
"--admin_port=7220", \
"--active_exchanges=COINBASE_AT", \
"--credentials_file=/.creds", \
"--log_file=/logs/%T.EXECUTOR_APP.log" \
]