Scan Docker Image locally
Assuming you have a .env file at the root of your repo (see .env.example):
Build the image (env vars are injected at runtime, not build time):
Then scan with Grype:
Scanning also runs automatically in CI via job_docker_image.yml using
Anchore scan-action.
Builds fail on HIGH or CRITICAL severity findings.