-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
52 lines (44 loc) · 2.12 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
# MATLAB Compiler Runtime (MCR) v9.13 (R2022b)
#
# This docker file will configure an environment into which the Matlab compiler
# runtime will be installed and in which stand-alone matlab routines (such as
# those created with MATLAB's deploytool) can be executed.
# MATLAB Runtime
# Run compiled MATLAB applications or components without installing MATLAB
# The MATLAB Runtime is a standalone set of shared libraries that enables the
# execution of compiled MATLAB applications or components. When used together,
# MATLAB, MATLAB Compiler, and the MATLAB Runtime enable you to create and distribute
# numerical applications or software components quickly and securely.
#
# See https://www.mathworks.com/products/compiler/matlab-runtime.html for more info.
#
# @author Riccardo De Martis
# @creation 2024-Feb-19
# @link https://github.com/demartis/matlab_runtime_docker
#
FROM debian:buster-slim
MAINTAINER Riccardo De Martis <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -q update && \
apt-get install -q -y --no-install-recommends \
xorg \
unzip \
wget \
curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Download the MCR from MathWorks site an install with -mode silent
RUN mkdir /mcr-install && \
mkdir /opt/mcr && \
cd /mcr-install && \
wget --no-check-certificate -q https://ssd.mathworks.com/supportfiles/downloads/R2022b/Release/8/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2022b_Update_8_glnxa64.zip && \
unzip -q MATLAB_Runtime_R2022b_Update_8_glnxa64.zip && \
rm -f MATLAB_Runtime_R2022b_Update_8_glnxa64.zip && \
./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent && \
cd / && \
rm -rf mcr-install
# Configure environment variables for MCR
ENV LD_LIBRARY_PATH /opt/mcr/R2022b/runtime/glnxa64:/opt/mcr/R2022b/bin/glnxa64:/opt/mcr/R2022b/sys/os/glnxa64:/opt/mcr/R2022b/extern/bin/glnxa64
ENV XAPPLRESDIR /etc/X11/app-defaults
# Configure a variable to dump VersionInfo.xml and test the correct installation through GitHub Actions
ENV MCR_MASTER_PATH /opt/mcr/R2022b