-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile-ai
41 lines (29 loc) · 1.03 KB
/
Dockerfile-ai
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
40
41
ARG BASE_CONTAINER=define_as_build_arg
FROM ${BASE_CONTAINER}
LABEL MAINTAINER="CSEL Ops <[email protected]>"
USER root
ENV DEBIAN_FRONTEND noninteractive
#
# Add material for AI classes
#
RUN $CONDA_DIR/bin/mamba install --quiet --yes scikit-learn bqplot
##
## Installation crafted by looking at their installScripts/JupyterhubInstall.sh
##
RUN cd /opt && \
git clone --branch Update_to_lab_v3 https://github.com/AISpace2/AISpace2.git && \
cd AISpace2 && export NODE_OPTIONS=--openssl-legacy-provider && \
(cd js ; npm install) && \
pip install -r requirements-dev.txt && \
pip install -e . && \
jupyter labextension install @jupyter-widgets/jupyterlab-manager && \
cd js && \
npm run update-lab-extension && \
jupyter labextension install
RUN $CONDA_DIR/bin/pip install ipythonblocks opencv-python Image
RUN $CONDA_DIR/bin/mamba install tensorflow keras qpsolvers quadprog
WORKDIR $HOME
RUN rm -rf /home/jovyan && \
mkdir /home/jovyan && \
chown $NB_UID:$NB_GID /home/jovyan
USER $NB_UID