{"repo":"patrickhoefler/dockerfilegraph","free":true,"listed":false,"github":"https://github.com/patrickhoefler/dockerfilegraph","clone":"git clone https://github.com/patrickhoefler/dockerfilegraph.git","description":"Visualize your multi-stage Dockerfiles","language":"Go","stars":273,"topics":["docker","dockerfile","visualization","cli","command-line","graph","container","graphviz","go","golang"],"license":"MIT","category":"cli-tools","readme_excerpt":"dockerfilegraph A command-line tool that visualizes multi-stage Dockerfiles as dependency graphs. Uses Graphviz to generate visual representations of Docker build processes, helping you understand build dependencies, document architecture, and debug complex multi-stage builds. What You Get The generated graph includes: Nodes: - All build stages - Default build target (highlighted in grey) - External images (with dashed borders) Edges: - FROM ... dependencies → solid line with full arrow - COPY --from=... dependencies → dashed line with empty arrow - RUN --mount=(. )from=... dependencies → dotted line with diamond arrow Supports multiple output formats (PDF, SVG, PNG), a legend, and layout customization options. Example Output With Legend ( --legend ) With Layer Visualization and Hidden Scratch Images ( --layers --scratch hidden ) Complex Multi-stage Build ( --concentrate --nodesep 0.3 --unflatten 4 ) Getting Started Prerequisites - A multi-stage Dockerfile Installation and Usage Run dockerfilegraph in your project directory to generate a Dockerfile.pdf with your build graph. Docker Homebrew mise Requirements: Graphviz installed locally Build from Source - Native Build Requirements: mise and Graphviz - Container Build Requirements: mise and Docker Configuration Options Common Flags: - --output svg png pdf - Choose your output format - --legend - Add a legend explaining the notation - --layers - Show all Docker layers - --separate ubuntu,alpine - Display selected external image","default_branch":null,"files":null,"tree":[],"storefront":"/r/patrickhoefler","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/patrickhoefler/dockerfilegraph/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}