forked from pnlbwh/fsl-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.centos7
34 lines (25 loc) · 952 Bytes
/
Dockerfile.centos7
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
FROM centos:7.5.1804
MAINTAINER Tashrif Billah <[email protected]>
# set up user and working directory
ARG USER=pnlbwh
ENV USER="$USER"
ARG CWD=/root
WORKDIR $CWD
ENV PWD="$CWD"
# libraries and commands for FSL
RUN yum -y update \
&& yum -y install epel-release wget file bzip2 openblas-devel which \
libmng libpng12 libSM gtk2 mesa-dri-drivers
# install FSL, -V 5.0.11, you are welcome to change it below
RUN wget https://fsl.fmrib.ox.ac.uk/fsldownloads/fslinstaller.py -O fslinstaller.py \
&& python fslinstaller.py -V 6.0.1 -d `pwd`/fsl-5.0.11-centos7 -p
# setup FSL environment
ENV FSLDIR="$PWD/fsl-5.0.11-centos7"
ENV PATH="$FSLDIR/bin/:$PATH" \
FSLMULTIFILEQUIT=TRUE \
FSLGECUDAQ=cuda.q \
FSLTCLSH="$FSLDIR/bin/fsltclsh" \
FSLWISH="$FSLDIR/bin/fslwish" \
FSLOUTPUTTYPE=NIFTI_GZ
# apply patch
RUN $FSLDIR/fslpython/bin/conda install -y -n fslpython -c conda-forge deprecation==1.*