Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 97e89b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/build/stage/docker_instructions.go
Expand Up @@ -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}
}
}

Expand Down

0 comments on commit 97e89b0

Please sign in to comment.