From dc5833730cea7e1b70dab340af88e0ac19db9854 Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Fri, 6 Oct 2023 01:43:43 +0500 Subject: [PATCH] empty context --- container-compose | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/container-compose b/container-compose index e8be566..1a3cb83 100755 --- a/container-compose +++ b/container-compose @@ -143,7 +143,10 @@ build(){ if [ -z "$dockerfile" ]; then dockerfile="Dockerfile" fi - $engine buildx build --platform $platform -t $new_image_tag -f $context$dockerfile $context + if [ -z "$context" ]; then + context="." + fi + $engine buildx build --platform $platform -t $new_image_tag -f $context/$dockerfile $context done } #push(){