-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 821 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (19 loc) · 821 Bytes
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
ARG BASE_IMAGE=quay.io/jupyter/scipy-notebook:python-3.11
FROM ${BASE_IMAGE} AS vectorbt
LABEL org.opencontainers.image.title="vectorbt"
LABEL org.opencontainers.image.description="VectorBT in Jupyter"
LABEL org.opencontainers.image.source="https://github.com/polakowo/vectorbt"
USER root
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER ${NB_UID}
WORKDIR /home/${NB_USER}/work
ARG VBT_EXTRAS=""
COPY --chown=${NB_UID}:${NB_GID} . /tmp/vectorbt
RUN python -m pip install --no-cache-dir -U pip setuptools wheel \
&& python -m pip install --no-cache-dir "/tmp/vectorbt${VBT_EXTRAS:+[${VBT_EXTRAS}]}" \
&& rm -rf /tmp/vectorbt
EXPOSE 8888
CMD ["start-notebook.py", "--ServerApp.ip=0.0.0.0", "--ServerApp.port=8888"]