From eb0aeda7bf4569672785a374cb24b9099d0262cb Mon Sep 17 00:00:00 2001 From: Guillermo Rauch Date: Mon, 1 Aug 2016 21:30:42 -0700 Subject: [PATCH] improve docker validation --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;