Install
$ agentstack add skill-aretedriver-ai-skills-docker ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
/docker - Dockerfile Generator
Generate optimized Dockerfiles with best practices.
Usage
/docker # Auto-detect and generate
/docker python # Python application
/docker rust # Rust application (multi-stage)
/docker --slim # Minimal image size
What This Skill Does
- Detect Application Type - Language, framework, dependencies
- Generate Dockerfile - Optimized for size and build speed
- Add .dockerignore - Exclude unnecessary files
- Multi-stage Builds - Separate build and runtime stages
- Security Hardening - Non-root user, minimal base image
Templates
Python Application
# Build stage
FROM python:3.11-slim as builder
WORKDIR /app
RUN pip install --no-cache-dir build
COPY pyproject.toml .
COPY src/ src/
RUN python -m build --wheel
# Runtime stage
FROM python:3.11-slim
WORKDIR /app
RUN useradd --create-home --shell /bin/bash app
COPY --from=builder /app/dist/*.whl .
RUN pip install --no-cache-dir *.whl && rm *.whl
USER app
ENTRYPOINT ["python", "-m", "myapp"]
Rust Application
# Build stage
FROM rust:1.75-slim as builder
WORKDIR /app
COPY Cargo.toml Cargo.lock ./
COPY src/ src/
RUN cargo build --release
# Runtime stage
FROM debian:bookworm-slim
RUN useradd --create-home --shell /bin/bash app
COPY --from=builder /app/target/release/myapp /usr/local/bin/
USER app
ENTRYPOINT ["myapp"]
.dockerignore
.git/
.gitignore
.venv/
__pycache__/
*.pyc
target/
*.md
.github/
tests/
Dockerfile
.dockerignore
Best Practices Applied
- Multi-stage builds - Smaller final image
- Layer caching - Dependencies before source code
- Non-root user - Security hardening
- Slim base images - Minimal attack surface
- .dockerignore - Faster builds, smaller context
- No cache mounts - Reproducible builds
- Pinned versions - Reproducible base images
Instructions for Claude
When /docker is invoked:
- Detect project type - Check for pyproject.toml, Cargo.toml, etc.
- Identify entry point - Main module or binary
- Use multi-stage - Always separate build from runtime
- Minimize layers - Combine RUN commands where sensible
- Add .dockerignore - Create if missing
- Security - Non-root user, minimal base image
- Document - Add comments explaining non-obvious choices
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: AreteDriver
- Source: AreteDriver/ai-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.