From ee9bdafce241d9bf0ba6511c8f2a00377bafc11c Mon Sep 17 00:00:00 2001 From: Ryan Day Date: Thu, 21 Feb 2019 14:54:45 -0800 Subject: [PATCH] fix: fix image.WorkingDir not saving --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 513d5b2..83ad289 100644 --- a/src/index.ts +++ b/src/index.ts @@ -266,7 +266,7 @@ export class Image { [].push.apply(imageData.config.config.Env, options.Env || this.Env || []); } - if (options.WorkingDir) { + if (options.WorkingDir || this.WorkingDir) { imageData.config.config.WorkingDir = options.WorkingDir || this.WorkingDir!; }