-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
52 lines (43 loc) · 1.36 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
# stanfordcni/cni-qa-report-fmri
#
# Use modified CNI/NIMS code from @rfdougherty to create a qa_report for a given fmri NIfTI file in Flywheel spec.
# See https://github.com/cni/nims/blob/master/nimsproc/qa_report.py for original source code.
#
FROM ubuntu-debootstrap:trusty
MAINTAINER Michael Perry <[email protected]>
# Install dependencies
RUN apt-get update && apt-get -y install \
python-dev \
python-pip \
libjpeg-dev \
zlib1g-dev \
pkg-config \
libpng12-dev \
libfreetype6-dev \
libblas-dev \
liblapack-dev \
libatlas-base-dev \
gfortran \
unzip \
zip \
git
# Link libs: pillow jpegi and zlib support hack
RUN ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
RUN ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
# Install scitran.data dependencies
RUN pip install --upgrade pip \
&& pip install numpy==1.11.0 \
&& pip install scipy==0.17.1 \
&& pip install dipy==0.11.0 \
&& pip install nibabel==2.0.2 \
&& pip install nipy==0.4.0 \
&& pip install matplotlib==1.5.1
# Trigger build of font cache
RUN python -c "from matplotlib import font_manager"
# Make directory for flywheel spec (v0)
ENV FLYWHEEL /flywheel/v0
RUN mkdir -p ${FLYWHEEL}
COPY manifest.json ${FLYWHEEL}/manifest.json
# Put the python code in place
COPY qa-report-fmri.py ${FLYWHEEL}/run
ENTRYPOINT ["/flywheel/v0/run"]