-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (32 loc) · 1011 Bytes
/
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
# Creates docker container that runs dcm2nii
#
# Example usage:
# docker run --rm -ti \
# -v <someDirWithDicoms>:/flywheel/v0/input \
# -v <emptyOutputFolder>:/flywheel/v0/output \
# scitran/dcm2nii <optional_flags>
#
#
# Start with neurodebian image
FROM neurodebian:trusty
MAINTAINER Michael Perry <[email protected]>
# Run apt-get calls
RUN apt-get update \
&& apt-get install -y \
python \
mricron \
unzip \
gzip
ENV DCM2NIIDIR /root/.dcm2nii
RUN mkdir -p $DCM2NIIDIR
COPY dcm2nii.ini $DCM2NIIDIR/dcm2nii.ini
# Make directory for flywheel spec (v0)
ENV FLYWHEEL /flywheel/v0
RUN mkdir -p ${FLYWHEEL}
# Add executables and manifest
COPY run ${FLYWHEEL}/run
ADD https://raw.githubusercontent.com/scitran/utilities/daf5ebc7dac6dde1941ca2a6588cb6033750e38c/metadata_from_gear_output.py ${FLYWHEEL}/metadata_create.py
RUN chmod +x ${FLYWHEEL}/metadata_create.py
COPY manifest.json ${FLYWHEEL}/manifest.json
# Configure entrypoint
ENTRYPOINT ["/flywheel/v0/run"]