Skip to content

Commit

Permalink
Update rule S7031: add multi-stage build exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
GabinL21 committed Dec 12, 2024
1 parent 5675385 commit 38aa8fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rules/S7031/docker/rule.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ This practice can make Docker images more efficient and easier to manage. +
Each layer in a Docker image is essentially a change to the image, like a version control system. +
So, fewer layers mean fewer changes to track, which simplifies management and troubleshooting.

=== Exceptions

In multi-stage builds, the rule only scans instructions that are part of the final image.

== How to fix it

=== Code examples
Expand Down

0 comments on commit 38aa8fc

Please sign in to comment.