diff --git a/plugins/00_dokku-standard/pre-delete b/plugins/00_dokku-standard/pre-delete new file mode 100755 index 000000000..8e057941a --- /dev/null +++ b/plugins/00_dokku-standard/pre-delete @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x + +APP="$1" +IMAGE=app/"$1" +CACHE_DIR="$HOME/$APP/cache" + +docker run -v $CACHE_DIR:/cache $IMAGE find /cache -depth -mindepth 1 -maxdepth 1 -exec rm -Rf {} \; + +