Disable docker cache for builds

This commit is contained in:
Michael Mayer 2019-06-07 20:35:38 +02:00
parent c0ce525b90
commit 7eccd2a440

View file

@ -5,6 +5,6 @@ if [[ -z $1 ]] || [[ -z $2 ]]; then
exit 1
else
echo "Building 'photoprism/$1:$2'...";
docker build --build-arg BUILD_TAG=$2 -t photoprism/$1:latest -t photoprism/$1:$2 -f docker/$1/Dockerfile .
docker build --no-cache --build-arg BUILD_TAG=$2 -t photoprism/$1:latest -t photoprism/$1:$2 -f docker/$1/Dockerfile .
echo "Done"
fi