-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 985 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 python:3.8-slim
WORKDIR /projects/bot
ENV PYTHONPATH="/projects/bot:$PYTHONPATH"
RUN pip install --upgrade pip
# To avoid error `failed to solve: executor failed running [/bin/sh -c pip install -r requirements.txt]: exit code: 1`
RUN apt-get update && apt-get install -y gcc python3-dev
###################
# TO INSTALL TA-LIB
###################
# RUN apt update
# RUN apt-get install -y wget make build-essential graphviz
# 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 pip install TA-Lib
# RUN rm -R ta-lib ta-lib-0.4.0-src.tar.gz
###################
# TO INSTALL TA-LIB
###################
COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt
EXPOSE 8888
ENTRYPOINT [ "jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--no-browser", "--NotebookApp.token='password'"]