1. Related DevOps Utilities
Convert environment configs in our ENV to JSON Converter, validate package ranges with the SemVer Checker, or build HTTP security policies in our CSP Header Builder.
THE TOOLBOX / CONTAINERS & DEVOPS
Paste any Dockerfile to catch security risks, hardcoded secrets, :latest tags, and broken layer caches—or start from production-ready multi-stage templates for Next.js, Go, and Python.
Fix: Pin an explicit minor/patch version (e.g., node:22-alpine) for reproducible builds.
Fix: Copy package.json / requirements.txt / go.mod and install dependencies before COPY . . to preserve Docker layer cache.
Fix: Combine related RUN commands with && to reduce final layer count.
Fix: Add --no-install-recommends and clean up /var/lib/apt/lists/*.
Fix: Combine related RUN commands with && to reduce final layer count.
Fix: Replace ADD with COPY unless auto-extracting a local tar archive.
Fix: Exec form avoids spawning /bin/sh so SIGTERM reaches your app cleanly.
Fix: Add a non-root USER (e.g., USER node or USER app) before CMD.
Fix: Add a lightweight HEALTHCHECK so orchestrators detect unhealthy containers.
CONTAINER BEST PRACTICES
Convert environment configs in our ENV to JSON Converter, validate package ranges with the SemVer Checker, or build HTTP security policies in our CSP Header Builder.
Always prefer CMD ["node", "server.js"] over CMD node server.js so PID 1 receives SIGTERM directly during rolling Kubernetes or Docker deployments.
It checks for unpinned :latest base images (DL3006/DL3007), missing non-root USER instructions (DL3002), hardcoded secrets in ENV/ARG (SEC001), ADD instead of COPY (DL3020), broken layer caching (COPY . . before package.json), shell-form CMD/ENTRYPOINT (DL3025), consecutive RUN layers (DL3059), and missing apt/apk cache cleanup flags.
Multi-stage builds compile your app in a heavy SDK image (with compilers and devDependencies) and copy only the final binary or standalone bundle into a minimal runtime image (like Alpine or Distroless), often shrinking container size by 70%–95% and eliminating attack surface.
No. All static analysis and multi-stage generation happen 100% locally in your browser with zero network calls.