-
Notifications
You must be signed in to change notification settings - Fork 5
/
DockerFile
38 lines (32 loc) · 1.14 KB
/
DockerFile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM python:3.9.13
RUN pip install pandas
RUN pip install boto3
RUN pip install oss2
RUN pip install redis
RUN pip install numpy
RUN pip install pymongo
RUN pip install pika
RUN pip install docker
RUN pip install pyyaml
RUN pip install tqdm
RUN pip install tablib
RUN pip install trading_calendars
RUN pip install xmltodict
RUN pip install simplejson
RUN pip install alpaca_trade_api
RUN pip install python-telegram-bot
RUN pip install influxdb_client
#RUN pip install MetaTrader5
RUN pip install ta
RUN pip install binance-futures-connector==4.0.0rc2
### This one is the base image for installing relevenat building tools
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /home/xtraderbacktest
COPY ./ /home/xtraderbacktest/
WORKDIR /home/xtraderbacktest/bots/
ENTRYPOINT ["python3","-W","ignore"]
## sudo docker rmi xtraderbacktest; sudo docker build -f DockerFile . -t xtraderbacktest;
## run docker image
## docker run -d -it --rm --name xtraderbacktest-<unique_name> xtraderbacktest <bot>.py <symbol>
## docker run -d -it --net=host --rm --name demo-ETHUSDT xtraderbacktest demo_strategy_live.py