dotnet / dotnet/dotnet-docker

Provide guidance for using `update-ca-certificates` in distroless images

Open
#5,045 22 comments 13 reactions 1 assignee Claimed by @lbussell View on GitHub
area-documentation
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.