From 9a71fff3f1e599e4148b9562b092c7388018add1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Guitaut?= Date: Thu, 11 Jun 2015 12:05:07 +0200 Subject: [PATCH] Use --no-cache when building Dockerfile Since `docker build` is only invoked when actually building a new image from a Dockerfile, using `--no-cache` allows to have an updated image even if the Dockerfile hasn't changed. This works well with Dockerfiles using `git` or packages referencing latest versions instead of "static" ones. --- plugins/00_dokku-standard/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/00_dokku-standard/commands b/plugins/00_dokku-standard/commands index 2c67807f2..d854e1d9d 100755 --- a/plugins/00_dokku-standard/commands +++ b/plugins/00_dokku-standard/commands @@ -41,7 +41,7 @@ case "$1" in # buildstep pluginhooks don't necessarily make sense for dockerfiles. call the new breed!!! pluginhook pre-build-dockerfile "$APP" - docker build -t "$IMAGE" . + docker build --no-cache -t "$IMAGE" . pluginhook post-build-dockerfile "$APP" ;;