返回目录
部署运维 插件

dsh-dockerfile-lint

lengrufeng2008/dsh-dockerfile-lint

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

Stars
0
Forks
0
Issues
0
更新
22 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:lengrufeng2008/dsh-dockerfile-lint

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

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.

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类部署运维
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: docker、dockerfile。