Create optimized Dockerfiles with AI-driven best practices. Activate when users mention "create dockerfile", "container image", "docker optimization", "containerize application", or "docker best pract
Imported from jeremylongshore/tons-of-skills-marketplace (plugins/saas-packs/skill-databases/windsurf/skills/windsurf-dockerfile-generation/SKILL.md). Install upstream with npx skills add jeremylongshore/tons-of-skills-marketplace --skill windsurf-dockerfile-generation. Copyright stays with the author (MIT).
Windsurf Dockerfile Generation
Overview
This skill enables AI-assisted Docker configuration within Windsurf. Cascade analyzes your application to generate optimized Dockerfiles with multi-stage builds, minimal base images, proper layer caching, and security best practices.
Prerequisites
Windsurf IDE with Cascade enabled
Docker installed locally
Application with defined dependencies
Understanding of containerization concepts
Target deployment environment defined
Instructions
Analyze Application
Select Base Image
Generate Dockerfile
Configure Security
Test and Validate
See ${CLAUDE_SKILL_DIR}/references/implementation.md for detailed implementation guide.
Output
Optimized production Dockerfile
Development Dockerfile with dev tools
docker-compose.yml for orchestration
.dockerignore for build optimization
Error Handling
See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.
Examples
See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.
Copy one of these into your project. Installing also returns the manifest and these snippets.
yaml
targets:
- https://api.opensmartroute.ai/api/v1/registry/jeremylongshore-tons-of-skills-marketplace-windsurf-dock-a8d4b8/manifest # or paste the manifest below
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.