首页/ AI 技能 / @skilllib/skill-2117939930272411101
Skill站外收录 @skilllib/skill-2117939930272411101

windsurf-dockerfile-generation

基于应用代码特征智能生成符合最佳实践的 Docker 配置,支持多阶段构建、精简镜像、分层缓存优化与安全加固,同时产出开发与生产双版本 Dockerfile、docker-compose 编排文件及 .dockerignore 规则。

0.0 (0) 23 次安装 原作者 编程导航
收录于 2026-01-22

Skills.MD

# 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. It supports Node.js, Python, Go, Java, and other common runtimes with framework-specific optimizations. ## Prerequisites - Windsurf IDE with Cascade enabled - Docker installed locally - Application with defined dependencies - Understanding of containerization concepts - Target deployment environment defined ## Instructions 1. **Analyze Application** 2. **Select Base Image** 3. **Generate Dockerfile** 4. **Configure Security** 5. **Test and Validate** See `{baseDir}/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 `{baseDir}/references/errors.md` for comprehensive error handling. ## Examples See `{baseDir}/references/examples.md` for detailed examples. ## Resources - [Windsurf Docker Guide](https://docs.windsurf.ai/features/docker) - [Docker Best Practices](https://docs.docker.com/develop/develop-images/dockerfile_best-practices/) - [Container Security Guide](https://docs.windsurf.ai/guides/container-security)

评论 0

还没有评论,来抢沙发。