-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (41 loc) · 1.41 KB
/
Dockerfile
File metadata and controls
53 lines (41 loc) · 1.41 KB
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
# From pytorch compiled from source
FROM pytorch
RUN apt-get update --fix-missing && apt-get install -y --no-install-recommends \
vim
RUN pip --no-cache-dir install \
jupyter\
natsort\
pillow \
matplotlib \
torchvision \
scikit-learn \
scikit-image \
pandas \
h5py \
tqdm \
autopep8 \
fire
## Configure Jupiter notebook extensions
# Set up notebook config
COPY jupyter_notebook_config.py /root/.jupyter/
# Enable JS widgets
RUN jupyter nbextension enable --py --sys-prefix widgetsnbextension
# Install contributed notebook extensions
RUN pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master
RUN jupyter contrib nbextension install --system
RUN jupyter nbextension enable collapsible_headings/main
RUN jupyter nbextension enable spellchecker/main
# Install vim bindings
RUN jupyter nbextension install https://github.com/lambdalisue/jupyter-vim-binding/archive/master.tar.gz --system
RUN jupyter nbextension enable jupyter-vim-binding-master/vim_binding
RUN mkdir -p /root/.jupyter/custom
COPY custom.js /root/.jupyter/custom
# Expose Ports for Ipython (9999)
EXPOSE 9999
# Move to home dir for root
WORKDIR "/root"
# Add aicsimage repo
RUN git clone https://github.com/AllenCellModeling/aicsimage.git /opt/aicsimage && \
cd /opt/aicsimage && \
pip install -r requirements.txt && \
pip install -e .