Skip to content

Commit

Permalink
Merge pull request #397 from Starfox64/patch-1
Browse files Browse the repository at this point in the history
Add ability to omit file to allow for remote context
  • Loading branch information
apocas authored Aug 31, 2017
2 parents cfdbb0d + 7d3155b commit f1cb462
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit f1cb462

Please sign in to comment.