Skip to content

Commit c9d5045

Browse files
committed
docker
1 parent d79cd96 commit c9d5045

File tree

2 files changed

+49
-19
lines changed

2 files changed

+49
-19
lines changed

docker/Dockerfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM python:3.11
2+
3+
LABEL authors="51bitquant"
4+
5+
RUN apt-get update && apt-get install -y \
6+
build-essential \
7+
wget \
8+
&& rm -rf /var/lib/apt/lists/*
9+
10+
# Download and install TA-Lib
11+
WORKDIR /tmp
12+
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz \
13+
&& tar -xzf ta-lib-0.4.0-src.tar.gz \
14+
&& cd ta-lib \
15+
&& ./configure --prefix=/usr \
16+
&& make \
17+
&& make install \
18+
&& cd .. \
19+
&& rm -rf ta-lib ta-lib-0.4.0-src.tar.gz
20+
21+
# working directory
22+
WORKDIR /app
23+
COPY . /app
24+
25+
# Install Python packages
26+
RUN pip install -r requirements.txt
27+
RUN pip install TA-Lib==0.4.26
28+
RUN pip install git+https://github.com/51bitquant/howtrader
29+
30+
# port for signal from Tradingview.
31+
EXPOSE 9999
32+
CMD [ "python", "-u", "main.py"]

requirements.txt

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
simplejson
2-
requests
3-
aiohttp
4-
flask
5-
pytz
6-
peewee
7-
pymongo
8-
tzlocal
9-
PySide6==6.2.2
10-
pyqtgraph==0.12.3
11-
qdarkstyle
12-
numpy==1.23.0
13-
pandas
14-
matplotlib
15-
seaborn
16-
deap
17-
plotly
18-
importlib-metadata
19-
backports.zoneinfo; python_version < '3.9'
1+
simplejson==3.19.1
2+
requests==2.31.0
3+
Flask==2.3.2
4+
pytz==2023.3
5+
peewee==3.16.2
6+
pymongo==4.3.3
7+
tzlocal==5.0.1
8+
PySide6==6.5.1.1
9+
pyqtgraph==0.13.3
10+
QDarkStyle==3.1
11+
numpy==1.24.3
12+
pandas==2.0.2
13+
matplotlib==3.7.1
14+
seaborn==0.12.2
15+
deap==1.3.3
16+
plotly==5.14.1
17+
importlib-metadata==6.6.0
2018

0 commit comments

Comments
 (0)