-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
43 lines (42 loc) · 1.34 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
FROM chunglabmit/simpleelastix
#
# The Docker for chunglabmit/simpleelastix
#
# It does the SimpleElastix super build
#
#FROM ubuntu
#RUN apt-get update
#RUN apt-get install -y tzdata
#RUN echo "America/Boston" > /etc/timezone
#RUN dpkg-reconfigure -f noninteractive tzdata
#RUN apt-get install -y cmake swig python3 python3-dev tcl tcl-dev tk tk-dev
#RUN apt-get install -y git
#RUN git clone https://github.com/SuperElastix/SimpleElastix
#RUN mkdir /build
#RUN cd /build
#RUN cd /build;cmake -D PYTHON_EXECUTABLE=`which python3` ../SimpleElastix/SuperBuild
#RUN cd /build;make -j `nproc`
#RUN cd /build/SimpleITK-build/Wrapping/Python/Packaging;python3 setup.py install
RUN apt-get update
RUN apt-get install -y python3-pip
#
# At this point six 1.11.0 is installed and Neuroglancer complains
#
RUN apt-get remove -y python3-six
RUN pip3 install six>=1.12.0
RUN pip3 install tornado==4.5.3 numpy
#
# Install Neuroglancer dev environment
#
RUN apt-get install -y wget
RUN wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
RUN git clone https://github.com/google/neuroglancer
WORKDIR /neuroglancer
RUN export NVM_DIR="$HOME/.nvm";[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"; nvm install 10.6.0 ; npm i
#
# Install Nuggt and dependencies
#
ADD . /app
WORKDIR /app
RUN pip3 install -r requirements.txt
RUN pip3 install --editable .