forked from CryptoSignal/Crypto-Signal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (23 loc) · 766 Bytes
/
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
FROM node as react_bundle
WORKDIR app/behaviours/ui/www/
COPY app/behaviours/ui/www/ ./
# Bundle our React files
RUN npm install
RUN npm run build
##################################
FROM python:3.6
# TA-lib is required by the python TA-lib wrapper. This provides analysis.
RUN wget http://prdownloads.sourceforge.net/ta-lib/ta-lib-0.4.0-src.tar.gz && \
tar -xvzf ta-lib-0.4.0-src.tar.gz && \
cd ta-lib/ && \
./configure --prefix=/usr && \
make && \
make install
ADD app/ /app
WORKDIR /app
COPY --from=react_bundle /app/behaviours/ui/www/static/index.js behaviours/ui/www/static/
# numpy must be installed first for python TA-lib
RUN pip install numpy==1.14.0
RUN pip install -r requirements.txt
EXPOSE 5000
CMD ["/usr/local/bin/python","app.py"]