Here's the response from my local MATLAB distributor that solved the issue for me:
The base Ubuntu image provided does not include the tzdata package. This is needed for correct identification of timezones. There are 2 ways to solve this: it can be installed after the image is built, or during the the build process.
- For the former, execute this in the container:
apt-get update && apt-get install tzdata -y
- For the latter, add tzdata as an AdditionalPackages optional name-value argument in compiler.package.DockerOptions. Documentation to this specfic argument can be found here: https://www.mathworks.com/help/compiler/compiler.package.dockeroptions.html#mw_50ae782f-97aa-4d00-bed2-38629d8db2a5_sep_mw_c6b401a2-86f5-40aa-b637-de03d6b2ce50