-
-
Notifications
You must be signed in to change notification settings - Fork 36
/
blotter.Dockerfile
35 lines (28 loc) · 888 Bytes
/
blotter.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
FROM python:3.7-slim
WORKDIR /app
ADD ./requirements.txt /app/requirements.txt
ADD ./constraints.txt /app/constraints.txt
RUN apt-get update && apt-get install -y wget && apt-get install -y build-essential && apt-get install -y git
# TA-Lib
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
RUN python -m pip install --upgrade pip && \
pip install -r requirements.txt -c constraints.txt --no-cache-dir
RUN apt-get autoremove --purge --yes build-essential
ADD . /app
ENV PYTHONUNBUFFERED=1
ENV dbport=27017
ENV orderbook=true
ENV threads=2
ENV dbhost='127.0.0.1'
ENV dbport=27017
ENV dbuser=kinetick
ENV dbpassword=kinetick
ENV dbname=kinetick
ENV dbskip=true
ENV LOGLEVEL=INFO
CMD [ "python", "-m", "kinetick.factory.blotter" ]