Skip to content

Commit

Permalink
Merge pull request #577 from Arno500/master
Browse files Browse the repository at this point in the history
Disabling auto-pack when building image
  • Loading branch information
apocas authored Jun 23, 2020
2 parents 26e18bf + 8fe753e commit ed6ef39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,6 @@ Docker.prototype.checkAuth = function(opts, callback) {
Docker.prototype.buildImage = function(file, opts, callback) {
var self = this;
var content;
var pack = tar.pack();

if (!callback && typeof opts === 'function') {
callback = opts;
Expand Down Expand Up @@ -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()));
Expand Down

0 comments on commit ed6ef39

Please sign in to comment.