54 lines
1.2 KiB
Docker
54 lines
1.2 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.8 \
|
|
python38-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 \
|
|
tensorflow-gpu==2.3.0 \
|
|
tensorboard==2.3.0 \
|
|
tensorflow-probability==0.11.1 \
|
|
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"]
|
|
|