From 7d3155bc8da72359d5b023e485acd86fc2d952b0 Mon Sep 17 00:00:00 2001 From: Starfox64 Date: Tue, 29 Aug 2017 14:05:54 +0200 Subject: [PATCH] Add ability to omit file to allow for remote context Closes #380 --- lib/docker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docker.js b/lib/docker.js index 498da13..aceccd9 100644 --- a/lib/docker.js +++ b/lib/docker.js @@ -296,7 +296,7 @@ Docker.prototype.buildImage = function(file, opts, callback) { } } - if (file.context) { + if (file && file.context) { file.src.forEach(function(filePath) { content = fs.readFileSync(path.join(file.context, filePath)); pack.entry({