From 97e89b0075f35277c3aa2f6b828afe0ed130c984 Mon Sep 17 00:00:00 2001 From: Alexey Igrychev Date: Wed, 7 Sep 2022 12:28:52 +0100 Subject: [PATCH] fix(buildah): different processing of CMD/ENTRYPOINT by Stapel and Buildah backend Respect CMD/ENTRYPOINT command in shell form. Signed-off-by: Alexey Igrychev --- pkg/build/stage/docker_instructions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/stage/docker_instructions.go b/pkg/build/stage/docker_instructions.go index d4968e9b35..6ce8cfe2ab 100644 --- a/pkg/build/stage/docker_instructions.go +++ b/pkg/build/stage/docker_instructions.go @@ -121,7 +121,7 @@ func CmdOrEntrypointStringToSlice(cmdOrEntrypoint string) ([]string, error) { return nil, fmt.Errorf("error parsing to the JSON array: %w", err) } } else { - result = []string{cmdOrEntrypoint} + result = []string{"/bin/sh", "-c", cmdOrEntrypoint} } }