SonarQube - Dockerfile cannot be scanned

The root cause is an empty comment in the Dockerfile (line 1):

#
FROM scratch

This issue was fixed with SONARIAC-592, which is available in SonarQube Server >= 10.0. Also, a lot of other improvements were introduced in the Docker analyzer, so I recommend testing the new SonarQube Server and upgrade if possible.

Best
Marcin Stachniuk