forked from WillForan/ICA-AROMA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (38 loc) · 1.49 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
# Dockerfile for aroma test installation under neurodebian/ubuntu
FROM neurodebian:xenial
MAINTAINER Ron Hartley-Davies ([email protected])
LABEL version="aroma-0.4.0"
# Rewrite sources list as contrib and non-free not included
RUN echo 'deb http://neuro.debian.net/debian xenial main contrib non-free' > /etc/apt/sources.list.d/neurodebian.sources.list \
&& echo 'deb http://neuro.debian.net/debian data main contrib non-free' >> /etc/apt/sources.list.d/neurodebian.sources.list
# Dependencies: python packages, fsl, and testing tools
# lynx is there to stop fsl pulling in firefox via dependence on <www-browser>
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
curl \
ca-certificates \
lynx \
fsl-5.0-core \
fsl-mni152-templates \
make \
python-six \
python-nibabel \
python-nose \
python-numpy \
python-setuptools \
&& apt-get autoremove && apt-get clean && rm -rf /var/lib/apt/lists/*
# Copy src tree into place and run package install
RUN useradd --create-home aroma
COPY . /home/aroma/icaaroma
WORKDIR /home/aroma/icaaroma
RUN python setup.py install
# do this explicitly as COPY doesn't respect USER command
RUN chown -R aroma /home/aroma/icaaroma
# User and environment to run with
USER aroma
ENV FSLDIR /usr/share/fsl/5.0
ENV LD_LIBRARY_PATH /usr/lib/fsl/5.0
ENV FSLOUTPUTTYPE NIFTI_GZ
# Default command for "docker run" (nb aroma is on the path)
# Other commands such as 'make tests' can be run explicitly
CMD ["aroma", "--help"]