forked from cpp-lln-lab/bidspm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
56 lines (49 loc) · 1.58 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
46
47
48
49
50
51
52
53
54
55
56
FROM bids/base_validator
ARG DEBIAN_FRONTEND="noninteractive"
## basic OS tools install octave
RUN apt-get update -qq && \
apt-get -qq -y --no-install-recommends install \
build-essential \
software-properties-common \
apt-utils \
ca-certificates \
git \
curl \
python3 \
python3-pip \
fonts-freefont-otf \
ghostscript \
gnuplot-x11 \
libcurl4-gnutls-dev \
octave \
liboctave-dev \
octave-common \
octave-io \
octave-image \
octave-signal \
octave-statistics && \
apt-get clean && \
rm -rf \
/tmp/hsperfdata* \
/var/*/apt/*/partial \
/var/lib/apt/lists/* \
/var/log/apt/term*
## Install SPM
RUN mkdir /opt/spm12 && \
curl -SL https://github.com/spm/spm12/archive/r7771.tar.gz | \
tar -xzC /opt/spm12 --strip-components 1 && \
curl -SL https://raw.githubusercontent.com/spm/spm-docker/main/octave/spm12_r7771.patch | \
patch -p0 && \
make -C /opt/spm12/src PLATFORM=octave distclean && \
make -C /opt/spm12/src PLATFORM=octave && \
make -C /opt/spm12/src PLATFORM=octave install && \
ln -s /opt/spm12/bin/spm12-octave /usr/local/bin/spm12
WORKDIR /home/neuro
COPY . /home/neuro/bidspm
WORKDIR /home/neuro/bidspm
RUN pip install --no-cache-dir --upgrade pip && \
pip3 --no-cache-dir install . && \
octave --no-gui --eval "addpath('/opt/spm12/'); savepath ();" && \
octave --no-gui --eval "addpath(pwd); savepath(); bidspm(); path"
WORKDIR /home/neuro
ENTRYPOINT ["bidspm"]