If you use a base image that does not have the (Ubuntu, Debian) package ca-certificates installed, installing it will regenerate /etc/ssl/certs/ca-certificates.pem without the TLS interception certificate, to make sure it is included in such a case as well, it should be injected to /usr/local/share/ca-certificates as well, and then either update-ca-certificates should be ran or just appending, creating /etc/ssl/certs/ca-certificates.pem to be overwritten when that package is installed.
If you use a base image that does not have the (Ubuntu, Debian) package
ca-certificatesinstalled, installing it will regenerate/etc/ssl/certs/ca-certificates.pemwithout the TLS interception certificate, to make sure it is included in such a case as well, it should be injected to/usr/local/share/ca-certificatesas well, and then eitherupdate-ca-certificatesshould be ran or just appending, creating/etc/ssl/certs/ca-certificates.pemto be overwritten when that package is installed.