I suggest running hadolint, which scans for most of this.
+1 for hadolint. There's also https://github.com/goodwithtech/dockle and https://github.com/aquasecurity/trivy if you want more security emphasis.
I suggest running hadolint, which scans for most of this.