docker-build-strategies
An agent skill from Docker focused on the quality of Dockerfiles and the images they produce.
O que a skill ensina
An agent skill from Docker focused on the quality of Dockerfiles and the images they produce. It gives the agent rules for multi-stage builds with named stages and small runtime bases, ordering instructions so layer caching works, keeping the build context lean with .dockerignore, running containers as a non-root user and trimming image size, with reference notes per language and example Dockerfiles for Go, Node.js and Python. A bundled shell script builds the current project and reports the image size and configured user. BuildKit is expected, which is the default from Docker 23.0.
O que faz
- Write or review Dockerfiles with multi-stage builds
- Order layers for better build caching
- Create a .dockerignore file
- Build an image and report its size and user
Sobre
- Publicador
- Docker
- Ferramenta
- Docker
Instalação
- Execute este comando para adicionar ao Qualquer cliente:
npx skills add docker/skills
O que tem dentro
- agents/openai.yaml
- assets/Dockerfile.go
- assets/Dockerfile.nodejs
- assets/Dockerfile.python
- assets/dockerignore-example
- checks/verification.md
- evals/docker-build-strategies.md
- references/layer-caching.md
- references/multi-stage-builds.md
- scripts/verify-build.sh
- skill.yaml
Servidores MCP e skills podem executar código no seu computador e agir sobre os seus dados. Revise o código-fonte antes de instalar.
Esta skill inclui scripts que o seu agente pode executar.
Detalhes
| Fato | Valor | Fonte |
|---|---|---|
| Tipo | Skill | |
| Ferramenta | Docker | |
| Publicador | Docker | fonte |
| Status oficial | OficialDocker Docs call these Docker's official skills and link the docker/skills repository | fonte |
| Exige chave de API ou login | Não informado na documentação | |
| Inclui scripts | Sim | fonte |
| Plataformas | Não informado na documentação | |
| Clientes de IA | Não informado na documentação | |
| Licença | Apache-2.0 | fonte |
| Preço | Não informado na documentação | |
| Atividade | Último commit em 10 de nov. de 2026625 estrelas no GitHubDados de download indisponíveis (não está no npm nem no PyPI) | fonte |
| Links | Repositório Site |
Mais de Docker
3 servidores · 13 skills
- docker-agent-config (Skill)
- docker-agent-deploy (Skill)
- docker-agent-run (Skill)
- docker-compose-patterns (Skill)
- docker-destructive-guardrails (Skill)
- docker-docs (Skill)
Selo para o seu README
Você mantém este projeto? Adicione um selo com link para esta página.
[](https://kitbay.app/skills/docker-docker-build-strategies/)
Fontes
- Arquivo da skill (SKILL.md)github.com/docker/skills · Comprova: Licença14 de nov. de 2026
- README (README.md)github.com/docker/skills12 de nov. de 2026
- Página webdocs.docker.com · Comprova: Status oficial12 de nov. de 2026
- Repositório no GitHubgithub.com/docker/skills · Comprova: Publicador, Atividade, Licença11 de nov. de 2026
- Pasta no repositório (docker-build-strategies)github.com/docker/skills · Comprova: Inclui scripts14 de nov. de 2026