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} } }