From 2933d7bcba946fe25f71b9b1ea82ed2157cde994 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 23 Jun 2020 17:40:50 +0200 Subject: [PATCH 1/2] Disabling auto-pack when building image --- lib/docker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docker.js b/lib/docker.js index 0c7618f..f7c4350 100644 --- a/lib/docker.js +++ b/lib/docker.js @@ -248,7 +248,7 @@ Docker.prototype.checkAuth = function(opts, callback) { Docker.prototype.buildImage = function(file, opts, callback) { var self = this; var content; - var pack = tar.pack(); + var pack; if (!callback && typeof opts === 'function') { callback = opts; From 8fe753e668d43bb9ca5c631a83166180fc04dab1 Mon Sep 17 00:00:00 2001 From: Pedro Dias Date: Tue, 23 Jun 2020 17:06:40 +0100 Subject: [PATCH 2/2] small tweak --- lib/docker.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/docker.js b/lib/docker.js index f7c4350..3d93f4c 100644 --- a/lib/docker.js +++ b/lib/docker.js @@ -248,7 +248,6 @@ Docker.prototype.checkAuth = function(opts, callback) { Docker.prototype.buildImage = function(file, opts, callback) { var self = this; var content; - var pack; if (!callback && typeof opts === 'function') { callback = opts; @@ -298,7 +297,7 @@ Docker.prototype.buildImage = function(file, opts, callback) { } if (file && file.context) { - pack = tar.pack(file.context, { + var pack = tar.pack(file.context, { entries: file.src }); return build(pack.pipe(zlib.createGzip()));