Skip to content
Permalink
Browse files
fix(buildah): different processing of CMD/ENTRYPOINT by Stapel and Bu…
…ildah backend

Respect CMD/ENTRYPOINT command in shell form.

Signed-off-by: Alexey Igrychev <alexey.igrychev@flant.com>
  • Loading branch information
alexey-igrychev committed Sep 7, 2022
1 parent 2f53aa4 commit 97e89b0075f35277c3aa2f6b828afe0ed130c984
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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}
}
}

0 comments on commit 97e89b0

Please sign in to comment.