From cc0ebe0b648ba3ce43d623633aded3ff1c05e56a Mon Sep 17 00:00:00 2001 From: keet Date: Tue, 27 Nov 2018 20:35:29 +0800 Subject: [PATCH] Build context now is the same level as the dockerfile --- library/kubernetes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/kubernetes.py b/library/kubernetes.py index 676c15e..588d8ab 100644 --- a/library/kubernetes.py +++ b/library/kubernetes.py @@ -26,7 +26,7 @@ def build(self, containers=[]): for container in containers: image_name = self.get_build_image_name(container) if not (self.production and self.container_built_and_pushed(container)): - call(['docker', 'build', '--force-rm', '--no-cache', '--rm', '--file', container + '/' + self.dockerfile_filename, '-t', image_name, os.getcwd()]) + call(['docker', 'build', '--force-rm', '--no-cache', '--rm', '--file', container + '/' + self.dockerfile_filename, '-t', image_name, os.getcwd() + '/' + container]) call(['docker', 'push', image_name]) else: print('Image ' + image_name + ' has already been built and pushed to the cloud.')