| Rule | Description |
|---|---|
| curlUseFlagF | Use the -f flag when using curl. |
| npmCacheCleanAfterInstall | Run npm cache clean after npm install |
| npmCacheCleanUseForce | Use the --force flag when using npm cache clean. |
| rmRecursiveAfterMktempD | A rm -r should occur after a mktemp -d |
| curlUseHttpsUrl | Use https:// urls with curl |
| wgetUseHttpsUrl | Use https:// urls with wget |
| pipUseNoCacheDir | Use --no-cache-dir flag with pip |
| mkdirUsrSrcThenRemove | After running mkdir /usr/src* use rm -rf /usr/src* to clean up. |
| configureShouldUseBuildFlag | When using ./configure in a Dockerfile pass the --build flag. |
| gemUpdateSystemRmRootGem | After running gem update --system remove the /root/.gem directory. |
| sha256sumEchoOneSpaces | sha256sum takes an input on stdin with one space. |
| gemUpdateNoDocument | If you run gem update you should have previously added the --no-document flag to the .gemrc config. |
| gpgVerifyAscRmAsc | If you run gpg --verify X.asc you should remove the X.asc file. |
| yumInstallForceYes | Use the -y flag with yum install. |
| yumInstallRmVarCacheYum | If you run yum install ... you should remove the /var/cache/yum directory. |
| tarSomethingRmTheSomething | If you run tar X.tar you should remove the X.tar file. |
| gpgUseBatchFlag | Use the --batch flag when using gpg in a docker image. |
| gpgUseHaPools | Use ha.pool.* instead of pool.* with gpg. |
| ruleAptGetInstallUseY | Must use the -y flag to avoid apt-get install requesting user interaction. |
| ruleAptGetInstallUseNoRec | Use the --no-install-recommends flag to save layer space and avoid hidden dependencies. |
| ruleAptGetUpdatePrecedesInstall | apt-get update && apt-get install should happen in a single layer. |
| ruleAptGetInstallThenRemoveAptLists | rm -rf /var/lib/apt/lists/* after apt-get install to save layer space. |
| apkAddUseNoCache | Use the --no-cache flag when using apk add. |
Query the Dockerfile AST. Write a note type per line and represent the hierarchy with indentation or space.
{{r.toString(true)}}