1
0
mirror of https://github.com/polakowo/vectorbt.git synced 2022-03-22 01:31:39 +03:00
Files
vectorbt-trading/Dockerfile
2021-05-05 13:09:43 +02:00

39 lines
870 B
Docker

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"