diff --git a/ci_cd/security_scans.sh b/ci_cd/security_scans.sh index dbf7c657f6..897589c0a4 100755 --- a/ci_cd/security_scans.sh +++ b/ci_cd/security_scans.sh @@ -50,12 +50,12 @@ run_grype_scans() { # Build and scan Dockerfile.database echo "Building and scanning Dockerfile.database..." - docker build -t litellm-database:latest -f ./docker/Dockerfile.database . + docker build --no-cache -t litellm-database:latest -f ./docker/Dockerfile.database . grype litellm-database:latest --fail-on critical # Build and scan main Dockerfile echo "Building and scanning main Dockerfile..." - docker build -t litellm:latest . + docker build --no-cache -t litellm:latest . grype litellm:latest --fail-on critical # Restore original .dockerignore