Skip to content

Commit

Permalink
Build context now is the same level as the dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
keet committed Nov 27, 2018
1 parent 8204ef7 commit cc0ebe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.')
Expand Down

0 comments on commit cc0ebe0

Please sign in to comment.