diff --git a/dockermake/step.py b/dockermake/step.py index 31d703d..c70efb3 100644 --- a/dockermake/step.py +++ b/dockermake/step.py @@ -122,11 +122,14 @@ def build(self, client, pull=False, usecache=True): if not self.custom_exclude: kwargs.update(path=context_path) else: - print(colored(' Custom .dockerignore from:','blue'), + print(colored(' Custom .dockerignore from:', 'blue'), colored(os.path.relpath(self.ignoredefs_file), 'blue', attrs=['bold'])) + + # AMV - this is a brittle internal call to the library context = docker.utils.tar(self.build_dir, exclude=self.custom_exclude, - dockerfile=os.path.join(DOCKER_TMPDIR, 'Dockerfile'), + dockerfile=(os.path.join(DOCKER_TMPDIR, 'Dockerfile'), + dockerfile), gzip=False) kwargs.update(fileobj=context, custom_context=True)