-
Notifications
You must be signed in to change notification settings - Fork 38
/
Dockerfile
83 lines (67 loc) · 1.93 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
FROM jupyter/scipy-notebook:python-3.9.12
USER root
WORKDIR /tmp
ENV DEBUG False
RUN apt-get update && \
apt-get install -yq --no-install-recommends cmake && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN wget https://netcologne.dl.sourceforge.net/project/ta-lib/ta-lib/0.4.0/ta-lib-0.4.0-src.tar.gz && \
tar -xvzf ta-lib-0.4.0-src.tar.gz && \
cd ta-lib/ && \
./configure --prefix=/usr --build=unknown-unknown-linux && \
make && \
make install
RUN rm -R ta-lib ta-lib-0.4.0-src.tar.gz
USER ${NB_UID}
RUN pip install --quiet --no-cache-dir \
'jupyter-dash' \
'plotly>=5.0.0' \
'kaleido' && \
jupyter lab build --minimize=False
RUN pip install --quiet --no-cache-dir 'pybind11'
RUN pip install --quiet --no-cache-dir --ignore-installed 'llvmlite'
RUN pip install --quiet --no-cache-dir \
'numpy==1.23.3' \
'numba==0.56.4' \
'pandas>=1.5.0' \
'schedule' \
'requests' \
'tqdm' \
'python-dateutil' \
'dateparser' \
'imageio' \
'mypy_extensions' \
'humanize' \
'attrs>=19.2.0' \
'websocket-client' \
'hyperopt' \
'optuna' \
'yfinance>=0.2.20' \
'python-binance>=1.0.16' \
'alpaca-py' \
'ccxt>=1.89.14' \
'tables' \
'polygon-api-client>=1.0.0' \
'nasdaq-data-link' \
'ta' \
'pandas_ta' \
'TA-Lib==0.4.21' \
'technical' \
'plotly-resampler' \
'quantstats>=0.0.37' \
'PyPortfolioOpt>=1.5.1' \
'Riskfolio-Lib>=3.3.0' \
'python-telegram-bot==13.5' \
'dill' \
'lz4' \
'blosc'
RUN pip install --quiet --no-cache-dir --no-deps 'universal-portfolios'
RUN pip install --quiet --no-cache-dir 'pandas_datareader'
RUN conda install --quiet --yes -c conda-forge cvxopt
COPY . $HOME/
RUN pip install --quiet --no-cache-dir -r $HOME/requirements.txt
ARG GH_TOKEN
RUN pip install -U "vectorbtpro[base] @ git+https://${GH_TOKEN}@github.com/polakowo/vectorbt.pro.git"
USER root
WORKDIR $HOME/py-trading-bot/