Provide guidance for using `update-ca-certificates` in distroless images
- Dominant language
- Dockerfile
- Stars
- 4.9k
- Forks
- 2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 26
Description
### Describe the Problem
Our Ubuntu Chiseled images only includes the [ca-certificates_data slice](https://github.com/canonical/chisel-releases/blob/ubuntu-22.04/slices/ca-certificates.yaml), which excludes tools like `update-ca-certificates` in order to reduce image size (this utility isn't typically needed at container runtime). However, if users want to add certificates at container build time, there's no documented way to do so in Ubuntu Chiseled.
### Describe the Solution
There should be a documented way to run the `update-ca-certificates` tool in the image's build layer, and copy the results to the runtime layer.
### Other Information
Context: https://devblogs.microsoft.com/dotnet/announcing-dotnet-chiseled-containers/comment-page-2/#comment-20182
Contributor guide
Assessment
This issue has not been assessed yet.