forked from lejeunel/ssnnpu_ksptrack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (44 loc) · 1.58 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
FROM tensorflow/tensorflow:latest-gpu-py3
MAINTAINER Laurent Lejeune <laurent.lejeune@artorg.unibe.ch>
#Install basic tools
RUN apt-get update && \
apt-get install -y git libbz2-dev cmake vim python3-tk wget &&\
rm -rf /var/lib/apt/lists/*
# Download boost, untar, setup install with bootstrap
# and then install
RUN cd /home && wget http://downloads.sourceforge.net/project/boost/boost/1.66.0/boost_1_66_0.tar.gz \
&& tar xfz boost_1_66_0.tar.gz \
&& rm boost_1_66_0.tar.gz \
&& cd boost_1_66_0 \
&& sh bootstrap.sh --with-libraries=python,log --with-python=/usr/local/bin/python3 --with-python-version=3.5 --with-python-root=/usr/local/lib/python3.5 \
&& ./b2 -j 4 install \
&& cd /home \
&& rm -rf boost_1_66_0
#Install boost_ksp
RUN cd /home && git clone https://github.com/lejeunel/boost_ksp.git \
&& cd boost_ksp \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make -j 4 \
&& python3 src/setup.py install \
&& python3 ../demo/demo.py \ # This is a test script
&& rm -rf /home/boost_ksp
#Install SLICsupervoxels
RUN cd /home && git clone https://github.com/lejeunel/SLICsupervoxels.git \
&& cd SLICsupervoxels \
&& mkdir build \
&& cd build \
&& cmake .. \
&& make -j 4 \
&& python3 src/setup.py install \
&& rm -rf /home/SLICsupervoxels
#Install pyflow
RUN cd /home && git clone https://github.com/Illumina/pyflow.git \
&& cd pyflow/pyflow \
&& python3 setup.py build install
#Install KSPTrack
RUN cd /home && git clone https://github.com/lejeunel/ksptrack.git \
&& cd ksptrack \
&& pip3 install -r requirements.txt \
&& pip3 install -e .