|
@@ -255,11 +255,9 @@ func cmd(b *Builder, args []string, attributes map[string]bool) error {
|
|
func entrypoint(b *Builder, args []string, attributes map[string]bool) error {
|
|
func entrypoint(b *Builder, args []string, attributes map[string]bool) error {
|
|
b.Config.Entrypoint = handleJsonArgs(args, attributes)
|
|
b.Config.Entrypoint = handleJsonArgs(args, attributes)
|
|
|
|
|
|
- if len(b.Config.Entrypoint) == 0 {
|
|
|
|
|
|
+ if len(b.Config.Entrypoint) == 0 && len(b.Config.Cmd) == 0 {
|
|
b.Config.Entrypoint = []string{"/bin/sh", "-c"}
|
|
b.Config.Entrypoint = []string{"/bin/sh", "-c"}
|
|
- }
|
|
|
|
-
|
|
|
|
- if !b.cmdSet {
|
|
|
|
|
|
+ } else if !b.cmdSet {
|
|
b.Config.Cmd = nil
|
|
b.Config.Cmd = nil
|
|
}
|
|
}
|
|
|
|
|