forked from MaxFBurg/docker
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
executable file
·68 lines (51 loc) · 1.48 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
ARG BASE_CONTAINER=eckerlabdocker/docker-stacks:ubuntu20.4-cuda11.3.0-cudnn8-python3.10.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 \
&& conda clean -tipy \
&& 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 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113 \
&& 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
# switch back to default user (jovyan)
USER $NB_USER