From 16632f933b2496c1cb4c35b218671f33144d59ca Mon Sep 17 00:00:00 2001 From: askiiart Date: Thu, 15 Dec 2022 17:14:48 -0600 Subject: [PATCH] Only compose if changed --- docker_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker_wrapper.py b/docker_wrapper.py index 41c9165..1bacada 100644 --- a/docker_wrapper.py +++ b/docker_wrapper.py @@ -129,7 +129,7 @@ class Docker: """ cwd = os.getcwd() os.chdir(dir) - status = getstatusoutput('docker compose up -d') + status = getstatusoutput('docker compose up -detach --build --remove-orphans') os.chdir(cwd) return status