-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
38 lines (29 loc) · 1.08 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
#flywheel/fmriprep
FROM python:3.7
MAINTAINER Tinashe Tapera <[email protected]>
# Make directory for flywheel spec (v0)
ENV FLYWHEEL /flywheel/v0
RUN mkdir -p ${FLYWHEEL}
COPY manifest.json ${FLYWHEEL}/manifest.json
# Set the entrypoint
ENTRYPOINT ["/flywheel/v0/fw_heudiconv_run.py"]
# Copy over python scripts that generate the BIDS hierarchy
RUN apt-get -y update && apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - &&\
apt-get -y install nodejs &&\
ln -s /usr/bin/nodejs /usr/local/bin/node
RUN curl -L https://www.npmjs.com/install.sh | sh
RUN npm install -g bids-validator
RUN python3 -m pip install --upgrade pip
RUN pip install --no-cache nipype pathvalidate
RUN pip install --no-cache flywheel-sdk~=14.6.5
COPY . /src
RUN cd /src \
&& pip install . \
&& rm -rf /src
COPY fw_heudiconv_run.py /flywheel/v0/fw_heudiconv_run.py
RUN chmod +x ${FLYWHEEL}/*
# ENV preservation for Flywheel Engine
RUN env -u HOSTNAME -u PWD | \
awk -F = '{ print "export " $1 "=\"" $2 "\"" }' > ${FLYWHEEL}/docker-env.sh
WORKDIR /flywheel/v0