Is it possible to trim the MATLAB Runtime install on a Docker image?

11 次查看(过去 30 天)
Installing the MATLAB Runtime on a Docker image bloats the image about 2 GB. Is there any way to trim this down to the essentials?
Example:
  2 个评论
Gautam Mohan
Gautam Mohan 2016-3-31
Hi Cameron,
Unfortunately MATLAB does not support selectively creating the MCR to include only essential components.
If you compile a numerics-only application within MATLAB, the packaged MCR will be smaller (~300mb). However, this MCR is only available if the application is deployed from MATLAB. MathWorks only hosts the full-sized MCR on its website.
Currently it looks like your Dockerfile downloads the full MCR from our website. If you were interested in a numerics-only MCR, you would have to obtain it your self by compiling a base functions-only application in MATLAB, and then host that MCR somewhere for download. Bear in mind that anyone who wants to use MATLAB in more ways than the base functionality would find the numerics-only MCR sufficient.
I apologize that we do not offer a customizable MCR, and that the full-sized or numerics-only MCRs are your only choices. Best of luck.
Hope this helps!
Gautam Mohan

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by