Install
openclaw skills install container-reviewerReviews Dockerfiles and docker-compose files for security, size, build, and best practice issues, providing a detailed severity-rated report with fixes.
openclaw skills install container-reviewerReview Dockerfiles and docker-compose files for security vulnerabilities, oversized images, build inefficiencies, and missing best practices. Returns a structured report with severity ratings and corrected examples.
Paste the Dockerfile and/or docker-compose.yml. Optionally specify:
## Dockerfile Review
### Critical (fix before production)
- [Finding] — [security or correctness risk]
✗ Before: [problematic line(s)]
✓ After: [corrected line(s)]
### Warnings (should fix)
- [Finding] — [size or reliability impact]
### Suggestions (nice to have)
- [Finding] — [explanation]
### What's correct
- [Specific patterns done right]
### Summary
[2–3 sentences: biggest risk, estimated image size savings if any, top fix]
root (no USER directive) — container escape riskENV, ARG, or RUN layer — visible in image historyFROM ubuntu:latest instead of ubuntu:22.04) — supply chain riskcurl | bash to install software — arbitrary code executionHEALTHCHECK — orchestrator can't detect unhealthy containersalpine or distroless would workRUN commands that should be chained with && (each RUN = a layer)COPY . . before dependency install (cache busting on every code change).dockerignore — copying node_modules, .git, build artifactsWORKDIR — files land in unexpected pathsEXPOSE port doesn't match what the app actually listens onCMD vs ENTRYPOINT confusion — CMD should be overridable args, ENTRYPOINT the executableADD when COPY is sufficient (ADD has implicit tar extraction and URL fetch)docker history)restart policy — containers don't recover from crashesenvironment: block — use .env or secretsvolumes: section0.0.0.0 when 127.0.0.1 would sufficemem_limit, cpus) — one container can starve otherscondition: service_healthy — race conditions on startupAfter each review, note the most impactful finding. After 20 reviews, surface "Top 3 Dockerfile mistakes" at the start of the response.