{"$id":"https://docker-doctor.vercel.app/schema.json","$schema":"http://json-schema.org/draft-07/schema#","additionalProperties":false,"description":"Configuration for the docker-doctor CLI (docker-doctor.config.{json,yaml,yml} or package.json#dockerDoctor).","properties":{"$schema":{"type":"string"},"categories":{"additionalProperties":false,"description":"Override every rule in a category at once.","properties":{"Best Practices":{"enum":["error","warning","info","off"]},"Compose":{"enum":["error","warning","info","off"]},"Image Size":{"enum":["error","warning","info","off"]},"Performance":{"enum":["error","warning","info","off"]},"Security":{"enum":["error","warning","info","off"]}},"type":"object"},"ignore":{"additionalProperties":false,"properties":{"files":{"description":"Glob patterns for files to exclude from scanning.","items":{"type":"string"},"type":"array"}},"type":"object"},"rules":{"additionalProperties":{"enum":["error","warning","info","off"]},"description":"Override the severity of an individual rule.","properties":{"docker-doctor/no-root-user":{"description":"Container should not run as root user","enum":["error","warning","info","off"]},"docker-doctor/no-secrets-in-env":{"description":"Do not store secrets in ENV or ARG instructions","enum":["error","warning","info","off"]},"docker-doctor/pin-image-version":{"description":"Always pin base image versions to specific tags","enum":["error","warning","info","off"]},"docker-doctor/no-add-remote":{"description":"Avoid using ADD with remote URLs","enum":["error","warning","info","off"]},"docker-doctor/use-multi-stage":{"description":"Consider using multi-stage builds","enum":["error","warning","info","off"]},"docker-doctor/order-layers":{"description":"Order layers to maximize build cache utility","enum":["error","warning","info","off"]},"docker-doctor/minimize-layers":{"description":"Minimize the number of image layers","enum":["error","warning","info","off"]},"docker-doctor/use-dockerignore":{"description":"Ensure .dockerignore is used","enum":["error","warning","info","off"]},"docker-doctor/require-healthcheck":{"description":"Add a HEALTHCHECK instruction","enum":["error","warning","info","off"]},"docker-doctor/prefer-copy-over-add":{"description":"Prefer COPY over ADD","enum":["error","warning","info","off"]},"docker-doctor/use-exec-form":{"description":"Use exec form for CMD and ENTRYPOINT","enum":["error","warning","info","off"]},"docker-doctor/require-labels":{"description":"Add LABEL metadata to images","enum":["error","warning","info","off"]},"docker-doctor/combine-apt-update-install":{"description":"Combine apt-get update and apt-get install","enum":["error","warning","info","off"]},"docker-doctor/use-pipefail":{"description":"Use pipefail to catch pipeline command failures","enum":["error","warning","info","off"]},"docker-doctor/absolute-workdir":{"description":"Use absolute paths for WORKDIR","enum":["error","warning","info","off"]},"docker-doctor/avoid-run-cd":{"description":"Avoid changing directories with cd in RUN","enum":["error","warning","info","off"]},"docker-doctor/sort-multiline-args":{"description":"Sort multi-line arguments alphanumerically","enum":["error","warning","info","off"]},"docker-doctor/useradd-no-log-init":{"description":"Use --no-log-init with useradd","enum":["error","warning","info","off"]},"docker-doctor/prefer-slim-base":{"description":"Use slim, alpine, or distroless base images","enum":["error","warning","info","off"]},"docker-doctor/clean-package-cache":{"description":"Clean up package manager cache in the same RUN layer","enum":["error","warning","info","off"]},"docker-doctor/avoid-dev-dependencies":{"description":"Avoid installing development dependencies in final production stage","enum":["error","warning","info","off"]},"docker-doctor/no-version-key":{"description":"Remove the 'version' key from Compose file","enum":["error","warning","info","off"]},"docker-doctor/require-resource-limits":{"description":"Define resource limits for services","enum":["error","warning","info","off"]},"docker-doctor/require-restart-policy":{"description":"Set restart policy for services","enum":["error","warning","info","off"]},"docker-doctor/use-depends-on-condition":{"description":"Use long-form depends_on with healthcheck conditions","enum":["error","warning","info","off"]}},"type":"object"}},"title":"Docker Doctor configuration","type":"object"}