Browse Source

improve docker validation

master
Guillermo Rauch 9 years ago
parent
commit
eb0aeda7bf
  1. 4
      lib/index.js

4
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;

Loading…
Cancel
Save