Skip to content

Dockerfile templating should be removed from ImageBuilder #1748

Description

@lbussell

Of all the repos that use ImageBuilder, only two use its templating features:

dotnet-docker makes heavy use of templating to generate hundreds of Dockerfiles.

dotnet-framework-docker, on the other hand, is comparatively simple. And in the coming months it will get even simpler, thanks to the removal of NetFX 3.5 images and consolidation of NetFX 4 images. In fact, after that consolidation it will have only 16 Dockerfiles managed by templates.

My argument is that those two repos would be better served by their own solutions which are closer in proximity to their own usage. And neither solution needs to be coupled to a full containerized build environment. Being too tightly coupled to ImageBuilder really slows down the dev loop for writing Dockerfiles.

Related:

Activity

  1. lbussell commented on Jul 28, 2025

    @lbussell
    MemberAuthor

    [Triage] Buildtools-prereqs has an open issue for using Dockerfile templating:

    From discussion, there's desire to keep any Dockerfile templating infrastructure in this repo, just not necessarily coupled directly to ImageBuilder. The team is on-board with simplifying/speeding up templating.

  2. added theissue type on Jul 28, 2025
  3. moved this from Backlog to Post Release in .NET Dockeron Jul 28, 2025
  4. moved this from Post Release to Current Release in .NET Dockeron Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    • Status
      Current Release

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions