🍺 BREW Explorer

← all formulae

dockerfilegraph

brew install dockerfilegraph v0.21.0 MIT

Visualize your multi-stage Dockerfiles

15
30-day installs · #7605
56
90-day · #6995
479
365-day · #5216
266
★ GitHub stars · updated 2mo ago

Runtime dependencies

Build dependencies

go

GitHub topics

cli command-line container docker dockerfile go golang graph graphviz visualization

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "go"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "graphviz"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Visualize your multi-stage Dockerfiles",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:03+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "dockerfilegraph",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-20T11:51:52Z",
  "github_readme_excerpt": "# dockerfilegraph\n\n[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/patrickhoefler/dockerfilegraph/ci.yml?branch=main)](https://github.com/patrickhoefler/dockerfilegraph/actions/workflows/ci.yml?query=branch%3Amain)\n[![Go Report Card](https://goreportcard.com/badge/github.com/patrickhoefler/dockerfilegraph)](https://goreportcard.com/report/github.com/patrickhoefler/dockerfilegraph)\n[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/patrickhoefler/dockerfilegraph)](https://github.com/patrickhoefler/dockerfilegraph/releases/latest)\n[![GitHub](https://img.shields.io/github/license/patrickhoefler/dockerfilegraph)](https://github.com/patrickhoefler/dockerfilegraph/blob/main/LICENSE)\n\nA command-line tool that visualizes multi-stage Dockerfiles as dependency graphs.\n\nUses [Graphviz](https://graphviz.org/) to generate visual representations of Docker build processes, helping you understand build dependencies, document architecture, and debug complex multi-stage builds.\n\n## What You Get\n\nThe generated graph includes:\n\n**Nodes:**\n\n- All build stages\n- Default build target (highlighted in grey)\n- External images (with dashed borders)\n\n**Edges:**\n\n- `FROM ...` dependencies \u2192 solid line with full arrow\n- `COPY --from=...` dependencies \u2192 dashed line with empty arrow\n- `RUN --mount=(.*)from=...` dependencies \u2192 dotted line with diamond arrow\n\nSupports multiple output formats (PDF, SVG, PNG), a legend, and layout customization options.\n\n## Example Output\n\n### With Legend (`--legend`)\n\n![Example output including a legend](./examples/images/Dockerfile-legend.svg)\n\n### With Layer Visualization and Hidden Scratch Images (`--layers --scratch hidden`)\n\n![Example output including layers](./examples/images/Dockerfile-layers.svg)\n\n### Complex Multi-stage Build (`--concentrate --nodesep 0.3 --unflatten 4`)\n\n![Example output with `--concentrate` and `--unflatten 4`](./examples/images/Dockerfile-large.svg)\n\n## Getting Started\n\n### Prerequi",
  "github_repo": "patrickhoefler/dockerfilegraph",
  "github_stars": 266,
  "github_topics": [
    "cli",
    "command-line",
    "container",
    "docker",
    "dockerfile",
    "go",
    "golang",
    "graph",
    "graphviz",
    "visualization"
  ],
  "homepage": "https://github.com/patrickhoefler/dockerfilegraph",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 15,
  "installs_365d": 479,
  "installs_90d": 56,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "dockerfilegraph",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 7605,
  "rank_365d": 5216,
  "rank_90d": 6995,
  "raw_hash": "1207d09422a6b9bb",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/d/dockerfilegraph.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.21.0",
  "versioned_formulae": [],
  "why_use_this": null
}