Pular para o conteúdo
Kitbay
SkillOficial

docker-build-strategies

Apache-2.0Atualizado em 10 de nov. de 2026625Estrelas no GitHubInclui scripts

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