Is it possible to trim the MATLAB Runtime install on a Docker image?
7 次查看(过去 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
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
Nicole Bonfatti
2024-8-13
This is now supported since R2023b: See doc for compiler.runtime.createDockerImage()
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Introduction to Installation and Licensing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!