-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (31 loc) · 1.53 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
FROM ubuntu:18.04
LABEL maintainer="@aliobaibk" \
version="1.2" \
description="MATLAB Runtime R2019b (9.7)"
# Environment
ENV MCR_ROOT="/usr/local/MATLAB/MATLAB_Runtime" \
MCR_VER="v97" \
MCR_LINK="https://ssd.mathworks.com/supportfiles/downloads/R2019b/Release/5/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2019b_Update_5_glnxa64.zip"
# Setup
RUN apt-get -y update && \
apt-get -y --no-install-recommends install unzip wget xorg && \
apt-get -y autoremove && \
apt-get -y clean && \
rm -rf /var/lib/apt/lists/*
# Download and install MCR
RUN wkdir="/tmp/mcr-${MCR_VER}-installer" && \
mkdir "$wkdir" && \
wget --no-check-certificate --progress=bar:force -O "$wkdir/mcr-${MCR_VER}.zip" "$MCR_LINK" && \
unzip -q "$wkdir/mcr-${MCR_VER}.zip" -d "$wkdir/mcr-${MCR_VER}" && \
rm -f "$wkdir/mcr-${MCR_VER}.zip" && \
"$wkdir/mcr-${MCR_VER}/install" -mode silent -agreeToLicense yes -destinationFolder "$MCR_ROOT" -tmpdir "$wkdir/tmp" && \
rm -rf "$wkdir" /tmp/hsperfdata_root
# Environment config
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MCR_ROOT/$MCR_VER/runtime/glnxa64"
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MCR_ROOT/$MCR_VER/bin/glnxa64"
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MCR_ROOT/$MCR_VER/sys/os/glnxa64"
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MCR_ROOT/$MCR_VER/sys/opengl/lib/glnxa64"
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$MCR_ROOT/$MCR_VER/extern/bin/glnxa64" \
XAPPLRESDIR="$MCR_ROOT/$MCR_VER/X11/app-defaults" \
MCR_CACHE_ROOT=/tmp \
MCR_CACHE_VERBOSE=true