Skip to content

Commit 3fd93a4

Browse files
committed
init
0 parents  commit 3fd93a4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM bids/base_validator
2+
3+
# Update system
4+
RUN apt-get -qq update && apt-get -qq install -y \
5+
unzip \
6+
xorg \
7+
wget && \
8+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
9+
10+
# Install MATLAB MCR
11+
ENV MATLAB_VERSION R2016b
12+
RUN mkdir /opt/mcr_install && \
13+
mkdir /opt/mcr && \
14+
wget --quiet -P /opt/mcr_install http://www.mathworks.com/supportfiles/downloads/${MATLAB_VERSION}/deployment_files/${MATLAB_VERSION}/installers/glnxa64/MCR_${MATLAB_VERSION}_glnxa64_installer.zip && \
15+
unzip -q /opt/mcr_install/MCR_${MATLAB_VERSION}_glnxa64_installer.zip -d /opt/mcr_install && \
16+
/opt/mcr_install/install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \
17+
rm -rf /opt/mcr_install /tmp/*
18+
19+
# Configure environment
20+
ENV MCR_VERSION v91
21+
ENV LD_LIBRARY_PATH /opt/mcr/${MCR_VERSION}/runtime/glnxa64:/opt/mcr/${MCR_VERSION}/bin/glnxa64:/opt/mcr/${MCR_VERSION}/sys/os/glnxa64:/opt/mcr/${MCR_VERSION}/sys/opengl/lib/glnxa64
22+
ENV MCR_INHIBIT_CTF_LOCK 1
23+
ENV MCRPath /opt/mcr/${MCR_VERSION}

0 commit comments

Comments
 (0)