Container Development

Generate optimized multi-stage Dockerfiles for containerized applications.

10|Updated Jun 30, 2020
One-click install
npx skills add https://github.com/laurigates/dotfiles --skill container-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Container Development
Source: https://github.com/laurigates/dotfiles/tree/main/dot_claude/skills/container-development
Command: npx skills add https://github.com/laurigates/dotfiles --skill container-development

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires docker, skaffold.

What problem does it solve?

Building efficient, secure, and maintainable container images can be complex, often leading to bloated images or security vulnerabilities. This Skill provides expert guidance and automation for Dockerfile authoring, multi-stage builds, and 12-factor principles, ensuring your applications are containerized optimally for production.

Core Features & Use Cases

  • Optimized Dockerfiles: Craft efficient, multi-stage Dockerfiles to create minimal, production-ready container images.
  • Security Hardening: Implement best practices like non-root users, minimal base images, and vulnerability scanning for secure containers.
  • 12-Factor App Principles: Ensure containerized applications adhere to modern best practices for configuration, statelessness, and explicit dependencies.
  • Use Case: Containerize a Node.js application, automatically generating an optimized multi-stage Dockerfile that reduces image size by 70%, runs as a non-root user, and integrates with Skaffold for a seamless local development loop.

Quick Start

Example: Build a Docker image

docker build -t my-app:latest .

Example: Run a container

docker run -p 8080:80 my-app:latest