Greg Hendrickson 8e8ae27640 feat(python): add production-ready Python Dockerfile templates
Added three Python Dockerfile variants with security best practices:

- Dockerfile.uv: Fast builds with UV package manager (recommended)
- Dockerfile.pip: Traditional pip-based workflow
- Dockerfile.distroless: Maximum security with no shell

Features across all templates:
- Multi-stage builds for minimal image size
- Non-root user execution
- BuildKit cache mounts for fast rebuilds
- Tini init for proper signal handling
- Health checks and OCI labels
- Comprehensive README with customization guide
2026-02-01 01:26:32 +00:00

Docker Templates

Docker License

Optimized Dockerfile templates with multi-stage builds, security scanning, and minimal attack surface.

Templates

├── python/        # Python 3.11+ with UV/pip
├── node/          # Node.js with pnpm/yarn
├── go/            # Go with scratch final image
├── java/          # Java with Eclipse Temurin
├── rust/          # Rust with musl for static binaries
├── multi-stage/   # Advanced multi-stage patterns
└── security/      # Hardened base images

Features

  • Multi-stage builds (small final images)
  • Non-root users
  • Minimal base images (distroless, alpine, scratch)
  • Layer caching optimization
  • Security scanning with Trivy/Grype
  • SBOM generation

Usage

cp python/Dockerfile.template ./Dockerfile
# Customize for your app
docker build -t myapp .

License

MIT

Description
No description provided
Readme 36 KiB
Languages
Dockerfile 100%