54 lines
1.1 KiB
Docker
54 lines
1.1 KiB
Docker
|
FROM nvidia/cuda:10.1-cudnn7-runtime-centos8
|
||
|
|
||
|
ARG NB_USER="jovyan"
|
||
|
|
||
|
USER root
|
||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||
|
RUN yum install -y \
|
||
|
gcc gcc-c++ \
|
||
|
nodejs \
|
||
|
python3.9 \
|
||
|
python39-devel \
|
||
|
sudo \
|
||
|
&&\
|
||
|
curl https://copr.fedorainfracloud.org/coprs/vbatts/bazel/repo/epel-7/vbatts-bazel-epel-7.repo > /etc/yum.repos.d/vbatts-bazel-epel-7.repo &&\
|
||
|
yum install -y bazel3 &&\
|
||
|
ln --force --symbolic /usr/bin/python3 /usr/bin/python &&\
|
||
|
pip3 install \
|
||
|
jupyterlab \
|
||
|
nodejs \
|
||
|
pylint \
|
||
|
pyro \
|
||
|
torch \
|
||
|
networkx \
|
||
|
colored \
|
||
|
ipywidgets \
|
||
|
matplotlib \
|
||
|
plotly \
|
||
|
bokeh \
|
||
|
seaborn \
|
||
|
scikit-learn \
|
||
|
scipy \
|
||
|
tqdm \
|
||
|
&&\
|
||
|
jupyter labextension install @jupyter-widgets/jupyterlab-manager &&\
|
||
|
adduser \
|
||
|
--create-home \
|
||
|
--password "hashlife" \
|
||
|
--shell /usr/bin/bash \
|
||
|
--user-group \
|
||
|
--groups wheel \
|
||
|
$NB_USER &&\
|
||
|
echo "$NB_USER:hashlife" | chpasswd &&\
|
||
|
mkdir -p /data &&\
|
||
|
chown $NB_USER /data
|
||
|
|
||
|
|
||
|
COPY --chown=$NB_USER jupyter_notebook_config.py /home/$NB_USER/.jupyter/
|
||
|
|
||
|
USER $NB_USER
|
||
|
WORKDIR /data
|
||
|
#ENV LD_LIBRARY_PATH /usr/local/cuda-10.1/compat:$LD_LIBRARY_PATH
|
||
|
CMD ["jupyter", "lab", "--ContentsManager.allow_hidden=True"]
|
||
|
|