Added docker image lint with dive

This commit is contained in:
Jamie Curnow
2021-06-29 16:06:19 +10:00
parent 44c46d9ecb
commit e971c34c0b
3 changed files with 28 additions and 6 deletions

14
docker/.dive-ci Normal file
View File

@@ -0,0 +1,14 @@
rules:
# If the efficiency is measured below X%, mark as failed.
# Expressed as a ratio between 0-1.
lowestEfficiency: 0.99
# If the amount of wasted space is at least X or larger than X, mark as failed.
# Expressed in B, KB, MB, and GB.
highestWastedBytes: 15MB
# If the amount of wasted space makes up for X% or more of the image, mark as failed.
# Note: the base image layer is NOT included in the total image size.
# Expressed as a ratio between 0-1; fails if the threshold is met or crossed.
highestUserWastedPercent: 0.02