Browse Source

Include comment parsing from the Dockerfile

master
Tony Kovanen 9 years ago
parent
commit
597d515633
  1. 2
      lib/index.js

2
lib/index.js

@ -80,7 +80,7 @@ export default class Now extends EventEmitter {
let docker; let docker;
try { try {
const dockerfile = await readFile(resolvePath(path, 'Dockerfile'), 'utf8'); const dockerfile = await readFile(resolvePath(path, 'Dockerfile'), 'utf8');
docker = parseDockerfile(dockerfile); docker = parseDockerfile(dockerfile, { includeComments: true });
} catch (err) { } catch (err) {
const e = Error(`Failed to parse "${path}/Dockerfile"`); const e = Error(`Failed to parse "${path}/Dockerfile"`);
e.userError = true; e.userError = true;

Loading…
Cancel
Save