Add cache_from to build opts

Signed-off-by: Joey Payne <jyapayne@gmail.com>
This commit is contained in:
Joey Payne 2017-02-20 13:18:52 -07:00
parent 89c028f3f2
commit 5b6191e653
2 changed files with 3 additions and 1 deletions

View File

@ -71,7 +71,8 @@
"properties": {
"context": {"type": "string"},
"dockerfile": {"type": "string"},
"args": {"$ref": "#/definitions/list_or_dict"}
"args": {"$ref": "#/definitions/list_or_dict"},
"cache_from": {"type": "#/definitions/list_of_strings"}
},
"additionalProperties": false
}

View File

@ -802,6 +802,7 @@ class Service(object):
nocache=no_cache,
dockerfile=build_opts.get('dockerfile', None),
buildargs=build_opts.get('args', None),
cache_from=build_opts.get('cache_from', None),
)
try: