Multi stage dockerfile

From mouadja02/skills · View interactive version

Multi stage dockerfile is an AI agent skill from the GitHub repository mouadja02/skills. Creates optimized multi-stage Dockerfiles for any language: separate build and runtime stages, minimal base images, layer caching, and non-root users. Use when containerizing an application or shrinking and hardening an existing image.

How to use this skill

Skill file

Multi Stage Dockerfile

Attribution: Sourced from github/awesome-copilot by GitHub Community, licensed MIT. Modified for this collection.

Your goal is to help me create efficient multi-stage Dockerfiles that follow best practices, resulting in smaller, more secure container images.

Multi-Stage Structure

Base Images

Layer Optimization

Security Practices

Performance Considerations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.