-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
71 lines (53 loc) · 1.55 KB
/
Dockerfile
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
ARG BASE_CONTAINER=eckerlabdocker/docker-stacks:cuda11.0-cudnn8-python3.8
FROM $BASE_CONTAINER
LABEL maintainer="Max Burg <[email protected]>"
# switch to root for installing software
USER root
# ---- install apt packages -----
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq -qq --no-install-recommends \
git \
htop \
make \
python3-dev \
unzip \
vim \
zlib1g \
zlib1g-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# ---- install python packages -----
RUN conda install \
# jupyter_nbextensions_configurator \
fastprogress \
gitpython \
h5py \
ipyparallel \
ipywidgets \
jsonschema \
numpy \
pandas \
pillow \
seaborn \
scikit-learn \
scikit-image \
scipy \
tensorboard \
tqdm \
xeus-python \
&& conda clean -tipsy \
&& fix-permissions $CONDA_DIR \
&& fix-permissions /home/$NB_USER
RUN pip install --no-cache-dir tensorflow-gpu \
&& fix-permissions $CONDA_DIR \
&& fix-permissions /home/$NB_USER
RUN pip install --no-cache-dir torch==1.7.1+cu110 torchvision==0.8.2+cu110 -f https://download.pytorch.org/whl/torch_stable.html \
&& fix-permissions $CONDA_DIR \
&& fix-permissions /home/$NB_USER
RUN pip install --no-cache-dir datajoint==0.12.4 \
&& fix-permissions $CONDA_DIR \
&& fix-permissions /home/$NB_USER
RUN rm /usr/bin/python3 && ln -s /opt/conda/bin/python
RUN jupyter labextension install @jupyterlab/debugger
# switch back to default user (jovyan)
USER $NB_USER