forked from dfci/pythologist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
82 lines (72 loc) · 2.38 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
71
72
73
74
75
76
77
78
79
80
81
82
# An Image development environment
# docker build -t cio_image_lab:20181129 --build-arg user=USERNAME --build-arg group=GROUPNAME --build-arg user_id=USERID --build-arg group_id=GROUPID .
FROM ubuntu:20.04
RUN apt-get update \
&& apt-get upgrade -y \
&& DEBIAN_FRONTEND='noninteractive' apt-get install -y \
python3-pip \
python3-dev \
nano \
wget \
git \
r-base \
&& apt-get autoremove \
&& apt-get clean
RUN apt-get update \
&& DEBIAN_FRONTEND='noninteractive' \
&& apt-get install -y --no-install-recommends apt-utils \
build-essential \
sudo \
git \
libhdf5-serial-dev \
&& apt-get autoremove \
&& apt-get clean
RUN pip3 install --upgrade pip \
&& pip3 install --upgrade setuptools
RUN pip3 install cython \
&& pip3 install cmake \
&& pip3 install pandas \
&& pip3 install numpy \
&& pip3 install scipy \
&& pip3 install scikit-learn \
&& pip3 install h5py \
&& pip3 install openpyxl \
&& pip3 install umap-learn \
&& pip3 install tables
ARG user=jupyter_user
ARG user_id=999
ARG group=jupyter_group
ARG group_id=999
RUN useradd -l -u $user_id -ms /bin/bash $user \
&& groupadd -g $group_id $group \
&& usermod -a -G $group $user
RUN pip3 install jupyterlab \
&& pip3 install matplotlib \
&& pip3 install plotnine[all] \
&& pip3 install seaborn
#USER $user
#RUN mkdir /home/$user/source \
# && cd /home/$user/source \
RUN mkdir /source \
&& cd /source \
&& git clone https://github.com/jason-weirather/mibitracker-client.git \
&& cd mibitracker-client \
&& git checkout 7aafa8c \
&& pip install -e . \
&& cd .. \
&& git clone -b develop --single-branch https://github.com/dfci/pythologist.git \
&& cd pythologist \
&& pip3 install -e . \
&& cd .. \
&& git clone https://github.com/jason-weirather/good-neighbors.git \
&& cd good-neighbors \
&& pip3 install -e .
#RUN mkdir /home/$user/work
#WORKDIR /home/$user/work
RUN mkdir .local \
&& chmod -R 777 .local
RUN mkdir .jupyter \
&& chmod -R 777 .jupyter
RUN mkdir /work
WORKDIR /work
CMD ["jupyter","lab","--ip=0.0.0.0","--port=8888","--allow-root"]