-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathDockerfile.test
46 lines (37 loc) · 1.92 KB
/
Dockerfile.test
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
42
43
44
45
46
FROM jupyterhub/jupyterhub
RUN pip3 install --no-cache jupyterlab notebook nbgitpuller matplotlib tensorflow \
torch torchvision torchaudio torchtext \
ipywidgets beakerx \
bash_kernel nodejs
RUN curl -sSL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh && \
bash /tmp/miniconda.sh -bfp /usr/local && rm -rf /tmp/miniconda.sh && \
conda install -y python=3 && conda update conda && conda clean --all --yes
RUN conda install -c conda-forge -c pytorch -c krinsman xeus-cling ijavascript && \
conda clean --all --yes && \
npm install -g --unsafe-perm ijavascript && ijsinstall --hide-undefined --install=global && npm cache clean --force
RUN apt-get update -yqq && \
echo "--------------------------------------" && \
echo "----------- JULIA INSTALL ------------" && \
echo "--------------------------------------" && \
apt-get install -yq julia && \
\
apt-get -y autoclean && apt-get -y autoremove && \
apt-get -y purge $(dpkg --get-selections | grep deinstall | sed s/deinstall//g) && \
rm -rf /var/lib/apt/lists/* /tmp/*
#Julia
RUN echo "--------------------------------------" && \
echo "----------- JULIA LINK TO JUPYTER ----" && \
echo "--------------------------------------" && \
julia -e 'empty!(DEPOT_PATH); push!(DEPOT_PATH, "/usr/share/julia"); using Pkg; Pkg.add("IJulia")' && \
cp -r /root/.local/share/jupyter/kernels/julia-* /usr/local/share/jupyter/kernels/ && \
chmod -R +rx /usr/share/julia/ && \
chmod -R +rx /usr/local/share/jupyter/kernels/julia-*/
#Add Extentions
#RUN jupyter labextension install jupyterlab-drawio
RUN jupyter labextension install @wallneradam/run_all_buttons
RUN jupyter labextension install jupyterlab-spreadsheet
ADD settings/jupyter_notebook_config.py /etc/jupyter/
ADD settings/jupyterhub_config.py /etc/jupyterhub/
COPY scripts /scripts
RUN chmod -R 755 /scripts
CMD "/scripts/sys/init.sh"