From 6a8be74675254c5660b8c355356f15893b17b9d9 Mon Sep 17 00:00:00 2001 From: uccu Date: Sat, 21 May 2022 15:52:11 +0800 Subject: [PATCH] feat: add build from image path --- compose_viz/parser.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compose_viz/parser.py b/compose_viz/parser.py index bfac019..d3a9afa 100644 --- a/compose_viz/parser.py +++ b/compose_viz/parser.py @@ -37,6 +37,9 @@ class Parser: if service.get("image"): service_image = service["image"] print("image: {}".format(service_image)) + elif service.get("build"): + service_image = "build from " + service["build"] + print("image: {}".format(service_image)) service_networks: List[str] = [] if service.get("networks"):