|
|
@ -85,8 +85,8 @@ export default class Now extends EventEmitter { |
|
|
|
throw e; |
|
|
|
} |
|
|
|
|
|
|
|
if (!docker.some((cmd) => 'RUN' === cmd.name || 'CMD' === cmd.name)) { |
|
|
|
const e = Error('No `RUN` or `CMD` found in `Dockerfile`. ' + |
|
|
|
if (!docker.some((cmd) => 'CMD' === cmd.name)) { |
|
|
|
const e = Error('No `CMD` found in `Dockerfile`. ' + |
|
|
|
'See: https://docs.docker.com/engine/reference/builder/#/run'); |
|
|
|
e.userError = true; |
|
|
|
throw e; |
|
|
|