2022-05-07 11:59:27 -07:00
|
|
|
FROM nvidia/cuda:11.2.2-cudnn8-runtime-ubuntu20.04
|
2021-01-02 23:30:57 -08:00
|
|
|
|
|
|
|
ARG NB_USER="jovyan"
|
|
|
|
|
|
|
|
USER root
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2022-05-07 11:59:27 -07:00
|
|
|
RUN apt-get update && apt-get install -y \
|
|
|
|
g++ \
|
2021-01-02 23:30:57 -08:00
|
|
|
nodejs \
|
|
|
|
python3.8 \
|
2022-05-07 11:59:27 -07:00
|
|
|
python3-pip \
|
2021-01-02 23:30:57 -08:00
|
|
|
sudo \
|
2022-05-07 11:59:27 -07:00
|
|
|
curl \
|
2021-01-02 23:30:57 -08:00
|
|
|
&&\
|
|
|
|
ln --force --symbolic /usr/bin/python3 /usr/bin/python &&\
|
|
|
|
pip3 install \
|
|
|
|
jupyterlab \
|
|
|
|
pylint \
|
2022-05-07 11:59:27 -07:00
|
|
|
tensorflow-gpu==2.7.0 \
|
|
|
|
tensorboard==2.7.0 \
|
2021-01-02 23:30:57 -08:00
|
|
|
colored \
|
|
|
|
matplotlib \
|
|
|
|
seaborn \
|
|
|
|
scikit-learn \
|
|
|
|
scipy \
|
|
|
|
tqdm \
|
2022-05-07 11:59:27 -07:00
|
|
|
networkx \
|
2021-01-02 23:30:57 -08:00
|
|
|
&&\
|
2022-05-07 11:59:27 -07:00
|
|
|
curl -fsSL https://deb.nodesource.com/setup_17.x | bash - &&\
|
|
|
|
apt-get install -y nodejs &&\
|
|
|
|
jupyter labextension install @jupyter-widgets/jupyterlab-manager
|
|
|
|
RUN useradd \
|
2021-01-02 23:30:57 -08:00
|
|
|
--create-home \
|
|
|
|
--password "hashlife" \
|
|
|
|
--shell /usr/bin/bash \
|
|
|
|
--user-group \
|
2022-05-07 11:59:27 -07:00
|
|
|
--groups sudo \
|
2021-01-02 23:30:57 -08:00
|
|
|
$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"]
|
|
|
|
|