From f07433b74240b9f05ed2a409066a7ac19474d162 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Wed, 9 Jan 2019 15:16:08 +0100 Subject: [PATCH] chg: ``cached_cmd_on_image`` is now using ``/bin/sh`` rather than ``/bin/bash`` for supporting alpine images --- bin/compose-core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/compose-core b/bin/compose-core index 848e1e2..8f5a64c 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -366,7 +366,7 @@ cached_cmd_on_image() { return 0 fi shift - out=$(docker run -i --rm --entrypoint /bin/bash "$image_id" -c "$*") || return 1 + out=$(docker run -i --rm --entrypoint /bin/sh "$image_id" -c "$*") || return 1 echo "$out" | tee "$cache_file" } export -f cached_cmd_on_image