-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
29 lines (24 loc) · 1.01 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
# Downloads and installs MATLAB Compiler Runtime v9.7 (2019b)
#
# Allows running MATLAB-compiled standalone files. Adapted from
# vistalab's MCR Dockerfile
FROM debian:buster-slim
# Install MCR dependencies
RUN apt-get update && apt-get -qq install -y \
--no-install-recommends \
unzip \
xorg \
wget \
curl \
ca-certificates
# Install MCR
RUN mkdir /mcr-install && \
mkdir -p /opt/mcr/v97
RUN cd /mcr-install && \
wget --no-check-certificate https://ssd.mathworks.com/supportfiles/downloads/R2019b/Release/5/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2019b_Update_5_glnxa64.zip
RUN cd mcr-install && unzip MATLAB_Runtime_R2019b_Update_5_glnxa64.zip && \
./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent
RUN rm -rf /mcr-install
# Configure environment variables for MCR
ENV LD_LIBRARY_PATH //opt/mcr/v97/runtime/glnxa64:/opt/mcr/v97/bin/glnxa64:/opt/mcr/v97/sys/os/glnxa64:/opt/mcr/v97/extern/bin/glnxa64
ENV XAPPLRESDIR /opt/mcr/v97/X11/app-defaults