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(){