-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (19 loc) · 821 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
# -- Base image --
FROM jupyter/minimal-notebook:python-3.10.9 as base
LABEL org.opencontainers.image.authors="https://github.com/Fantast03"
LABEL org.opencontainers.image.source="https://github.com/Fantast03/jupyterlab"
LABEL org.opencontainers.image.licenses="BSD3-Clause"
ARG CTX=base
USER root
# Copy preference settings
COPY $CTX/user-settings /home/$NB_USER/.jupyter/lab/user-settings/
RUN chown $NB_USER -R /home/$NB_USER/.jupyter/lab/user-settings/
# Copy and install jupyter extensions
COPY $CTX/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt
RUN jupyter lab build
# -- Machine learning image --
FROM base as machine-learning
ARG CTX=machine-learning
COPY $CTX/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt && rm requirements.txt