mirror of
https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git
synced 2026-06-12 14:14:56 +03:00
756 B
756 B
Workflows - Distroless Container Images
Migration Workflow
- Identify current base image and its package footprint
- Select appropriate distroless variant for your runtime
- Create multi-stage Dockerfile with build and runtime stages
- Test application functionality with distroless base
- Scan both old and new images to compare CVE counts
- Update debugging procedures (ephemeral containers, debug variants)
- Deploy to staging and validate
- Roll out to production
Image Build Pipeline
- Build application in builder stage (full SDK image)
- Copy only runtime artifacts to distroless stage
- Set non-root user via
:nonroottag - Scan final image with Trivy/Grype
- Sign image with cosign
- Push to registry with digest pinning