Dockerfile-Prüfung

Prüft ein Dockerfile nach Zuverlässigkeitsregeln, ohne einen Build auszuführen: festgelegte Image- und Paketversionen, Aufräumen des apt-Caches, sudo, JSON-Form von CMD und ENTRYPOINT, pipefail in Pipelines, COPY statt ADD für lokale Dateien, COPY --from auf eine unbekannte Stufe, letzter Benutzer root, aufeinanderfolgende RUN-Anweisungen und veraltetes MAINTAINER. Jeder Befund hat Regelcode, Stufe und Zeilennummer; das Ergebnis lässt sich als CSV herunterladen.

Checks a Dockerfile against reliability rules without running a build: pinned image and package versions, apt cache cleanup, sudo, JSON form of CMD and ENTRYPOINT, pipefail in pipelines, COPY instead of ADD for local files, COPY --from pointing at an unknown stage, the last user being root, consecutive RUN instructions and the deprecated MAINTAINER. Every finding carries a rule code, a level and a line number, and the result can be downloaded as CSV.