Image security means starting from a minimal, up-to-date base image, not running the container as an administrator (USER), not including secrets in it, scanning for vulnerabilities, and pinning versions. The fewer components an image contains, the fewer flaws it exposes.
Example
USER node