Back to catalog

lengrufeng2008 /

lengrufeng2008/dsh-dockerfile-lint

Verified

Static Dockerfile heuristics for DSH: base tags, root user, remote shell, apt hygiene, secrets.

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
READMESource: main@47a70eb2

Dockerfile Lint for DSH

Fast static Dockerfile heuristics: base tag, root user, sudo, remote shell, apt hygiene, remote ADD, secret-like build args, missing .dockerignore.

Use

node bin/dsh-dockerfile-lint.mjs Dockerfile
node bin/dsh-dockerfile-lint.mjs Dockerfile --json

In DSH:

Use dockerfile_lint with the Dockerfile path.

Limits

  • Static heuristics only; not a security audit, image scan, or build test
  • Small rule set; false positives/negatives are possible
  • Does not run Docker or inspect layers

Tests

npm test

Provenance

A small independent static checker. License: MIT.

—/ 5

No ratings yet

Community comments

No comments yet. Be the first to write one.