dotnet / sdk-container-builds

Libraries and build tooling to create container images from .NET projects using MSBuild
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
MIT License
177 stars 30 forks source link

Automation/tooling support for building a local Dockerfile as a 'base image' #125

Open baronfel opened 1 year ago

baronfel commented 1 year ago

One of our escape hatches for users that have a need to customize their base image with RUN commands (or any other functionality that we can't support) is to put just those customizations in a Dockerfile and then build and use that. It would be nice if we had a smooth, documented pathway to making that happen in the easy cases.

We might need to support:

in a seamless manner.

rainersigwald commented 1 year ago

Spitballing minimum effort approach: should we doc something like having a custom target that hooks before the container stuff that does something like docker build whatever -t mybaseimage:latest + use mybaseimage:latest as your base? There's still a missing "get the manifest info from local daemon instead of a registry" step.