-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
26 lines (23 loc) · 1.07 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
FROM bids/base_validator
# Update system
RUN apt-get -qq update -qq && \
apt-get -qq install -qq -y --no-install-recommends \
unzip \
xorg \
wget && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install MATLAB MCR
ENV MATLAB_VERSION R2022b
RUN mkdir /opt/mcr_install && \
mkdir /opt/mcr && \
wget --quiet -P /opt/mcr_install https://ssd.mathworks.com/supportfiles/downloads/R2022b/Release/3/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2022b_Update_3_glnxa64.zip && \
unzip -q /opt/mcr_install/*${MATLAB_VERSION}*.zip -d /opt/mcr_install && \
cd /opt/mcr_install && mkdir save && \
/opt/mcr_install/install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \
rm -rf /opt/mcr_install /tmp/*
# Configure environment
ENV MCR_VERSION v913
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
ENV MCR_INHIBIT_CTF_LOCK 1
ENV MCR_HOME /opt/mcr/${MCR_VERSION}