-
-
Notifications
You must be signed in to change notification settings - Fork 632
/
Dockerfile
39 lines (28 loc) · 870 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
35
36
37
38
39
FROM jupyter/scipy-notebook:bbf0ada0a935
USER root
WORKDIR /tmp
RUN apt-get update && \
apt-get install -yq --no-install-recommends curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY . vectorbt
WORKDIR vectorbt
RUN chmod -R +x scripts
ARG FULL="yes"
RUN if [[ -n "${FULL}" ]] ; then \
scripts/install-talib.sh && pip install --no-cache-dir .[full] ; else \
pip install --no-cache-dir . ; fi
RUN scripts/install-labextensions.sh && \
jupyter lab clean && \
npm cache clean --force && \
rm -rf /home/$NB_USER/.cache/yarn && \
rm -rf $CONDA_DIR/share/jupyter/lab/staging
USER $NB_UID
ARG TEST
RUN if [[ -n "${TEST}" ]] ; then \
pip install --no-cache-dir pytest && \
export NUMBA_BOUNDSCHECK=1 && \
export NUMBA_DISABLE_JIT=1 && \
python -m pytest tests ; fi
WORKDIR "$HOME/work"
ENV JUPYTER_ENABLE_LAB "yes"