allowing docker to use cached base image in build

This commit is contained in:
Jeff Downie
2017-02-17 16:18:43 +00:00
parent 0d98008242
commit 5d96ed01d2
3 changed files with 15 additions and 1 deletions

View File

@@ -118,6 +118,11 @@ func main() {
Usage: "squash the layers at build time",
EnvVar: "PLUGIN_SQUASH",
},
cli.BoolTFlag{
Name: "cache",
Usage: "don't attempt to re-build layers of the image that already exist",
EnvVar: "PLUGIN_USE_CACHE",
},
cli.BoolFlag{
Name: "compress",
Usage: "compress the build context using gzip",
@@ -172,6 +177,7 @@ func run(c *cli.Context) error {
Tags: c.StringSlice("tags"),
Args: c.StringSlice("args"),
Squash: c.Bool("squash"),
Cache: c.Bool("cache"),
Compress: c.Bool("compress"),
Repo: c.String("repo"),
},