-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathDockerfile.sh
More file actions
24 lines (17 loc) · 918 Bytes
/
Dockerfile.sh
File metadata and controls
24 lines (17 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:20.04
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
tzdata wget xorg unzip libxtst6 libxt6 libglu1 libxrandr2 x11-utils \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /mcr-install \
&& mkdir /opt/mcr
WORKDIR /mcr-install
ARG MATLAB_RUNTIME_SHA256="b821022690804e498d2e5ad814dccb64aab17c5e4bc10a1e2a12498ef5364e0d"
ENV MATLAB_RUNTIME_SHA256=${MATLAB_RUNTIME_SHA256}
RUN wget https://ssd.mathworks.com/supportfiles/downloads/R2021a/Release/1/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2021a_Update_1_glnxa64.zip \
&& echo "${MATLAB_RUNTIME_SHA256} MATLAB_Runtime_R2021a_Update_1_glnxa64.zip" | sha256sum -c - \
&& unzip MATLAB_Runtime_R2021a_Update_1_glnxa64.zip \
&& ./install -destinationFolder /opt/mcr -agreeToLicense yes -mode silent \
&& cd / \
&& rm -rf mcr-install
COPY . /src
WORKDIR /src