-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathDockerfile.matlab
18 lines (16 loc) · 1.07 KB
/
Dockerfile.matlab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM centos:latest
MAINTAINER hjkuijf
RUN yum update -y \
&& yum install wget unzip libXext libXt-devel libXmu -y \
&& mkdir /mcr-install \
&& cd /mcr-install \
&& wget -nv http://www.mathworks.com/supportfiles/downloads/R2016a/deployment_files/R2016a/installers/glnxa64/MCR_R2016a_glnxa64_installer.zip \
&& unzip MCR_R2016a_glnxa64_installer.zip \
&& ./install -mode silent -agreeToLicense yes \
&& rm -Rf /mcr-install
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/MATLAB/MATLAB_Runtime/v901/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/bin/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/java/jre/glnxa64/jre/lib/amd64
ENV XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Runtime/v901/X11/app-defaults
ENV MCR_CACHE_VERBOSE=true
ENV MCR_CACHE_ROOT=/tmp
ADD matlab/bin/for_redistribution_files_only /wmhseg_example
RUN ["chmod", "+x", "/wmhseg_example/example"]