-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile-freesurfer-dev
37 lines (32 loc) · 1.04 KB
/
Dockerfile-freesurfer-dev
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
# This Dockerfile constructs a docker image, based on the vistalab/freesurfer
# docker image to execute recon-all as a Flywheel Gear.
#
# Example build:
# docker build --no-cache --tag scitran/freesurfer-recon-all `pwd`
#
# Example usage:
# docker run -v /path/to/your/subject:/input scitran/freesurfer-recon-all
#
FROM ubuntu:xenial
LABEL MAINTAINER="Michael Perry <[email protected]>"
# Install dependencies for FreeSurfer
RUN apt-get update && apt-get -y install \
bc \
tar \
zip \
wget \
gawk \
tcsh \
python \
libgomp1 \
python2.7 \
python-pip \
perl-modules
# Download Freesurfer dev from MGH and untar to /opt
RUN wget -N -qO- ftp://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/dev/freesurfer-linux-centos6_x86_64-dev.tar.gz | tar -xz -C /opt && chown -R root:root /opt/freesurfer
# Make directory for flywheel spec (v0)
ENV FLYWHEEL /flywheel/v0
RUN mkdir -p ${FLYWHEEL}
WORKDIR ${FLYWHEEL}
# Run the run.sh script on entry.
ENTRYPOINT ["/flywheel/v0/run"]