diff --git a/lib/index.js b/lib/index.js index cdaf322..b769b7d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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;