Skip to content

Install all .NET binaries using an installer stage in Dockerfiles #6244

@lbussell

Description

@lbussell

Describe the Problem

We need to build images internally using private .NET binaries. We'd like for them to have a similar/identical docker history output to images that are published from public .NET binaries. We also don't want any secrets to be leaked through docker history.

Describe the Solution

All .NET binaries should be installed via a separate "installer" stage. We already follow this pattern in some Dockerfiles, so we just need to apply it to the rest of the images. As a bonus, it should simplify the Dockerfile templates a little.

Images

Additional Context

Part of https://github.com/dotnet/dotnet-docker-internal/issues/6782. Follow-up to https://github.com/dotnet/dotnet-docker-internal/issues/6844.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions