Skip to content

Commit 3dff8c2

Browse files
committed
Auto-Update
1 parent d105556 commit 3dff8c2

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM bids/base_validator
2+
3+
# Update system
4+
RUN apt-get -qq update -qq && \
5+
apt-get -qq install -qq -y --no-install-recommends \
6+
unzip \
7+
xorg \
8+
wget && \
9+
apt-get clean && \
10+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
11+
12+
# Install MATLAB MCR
13+
ENV MATLAB_VERSION R2021a
14+
RUN mkdir /opt/mcr_install && \
15+
mkdir /opt/mcr && \
16+
wget --quiet -P /opt/mcr_install https://ssd.mathworks.com/supportfiles/downloads/R2021a/Release/7/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2021a_Update_7_glnxa64.zip && \
17+
unzip -q /opt/mcr_install/*${MATLAB_VERSION}*.zip -d /opt/mcr_install && \
18+
cd /opt/mcr_install && mkdir save && \
19+
/opt/mcr_install/install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \
20+
rm -rf /opt/mcr_install /tmp/*
21+
22+
# Configure environment
23+
ENV MCR_VERSION v910
24+
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
25+
ENV MCR_INHIBIT_CTF_LOCK 1
26+
ENV MCR_HOME /opt/mcr/${MCR_VERSION}

0 commit comments

Comments
 (0)