containerize

Solid

Build minimal, non-root OCI images — `ko` for Go or a distroless multi-stage Dockerfile — then scan, sign, and SBOM them. Use when containerizing or packaging an app for deployment.

DevOps & Infrastructure 4 stars 1 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Containerize an Application Build a small, non-root, reproducible OCI image and verify it before it ships. Pairs with [k8s-local](../k8s-local/SKILL.md) for the local dev loop and [security-scan](../security-scan/SKILL.md) for image scanning. ## Choose an Approach 1. **Go → `ko` (default, no Dockerfile)**: builds a minimal, shell-less, multi-arch, reproducible image straight from a package path (base defaults to `cgr.dev/chainguard/static`, override with `KO_DEFAULTBASEIMAGE`). Pin it per project (`go get -tool github.com/google/ko`, then `go tool ko`) so builds stay reproducible even where a global toolchain already provides `ko`. ```bash export KO_DOCKER_REPO=registry.localhost:5050/<slug> # or a real registry go tool ko build ./cmd/<slug> --bare --platform=linux/amd64,linux/arm64 ``` 1. **Python (or any other language) → multi-stage Dockerfile** on a distroless or minimal base (optimized with `uv`). Copy and customize the image digests and the `<slug>` console-script entry point: - [Dockerfile](references/Dockerfile) - [.dockerignore](references/.dockerignore) ```bash # Build locally for current platform docker build -t <registry>/<slug>:<tag> . # Build multi-platform using Buildx (recommended for multi-arch registries) docker buildx build --platform linux/amd64,linux/arm64 -t <registry>/<slug>:<tag> --push . ``` ## Verify Before Ship 1. **Scan** the built image (fail on HIGH/CRITICAL — see [security-scan](../security-scan/SKI...

Details

Author
fmind
Repository
fmind/dotfiles
Created
4 months ago
Last Updated
yesterday
Language
Go
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

DevOps & Infrastructure Listed

containerization

Containerize applications with Docker and Kubernetes — writing optimized Dockerfiles, multi-stage builds, image layering, and Kubernetes deployment configs. Use when writing or reviewing a Dockerfile, choosing a base image, debugging a container build, or configuring Kubernetes pods and health checks. This skill is specific to Docker containerization and Kubernetes configuration and does NOT cover CI/CD pipelines, monitoring/alerting, or secret management.

1 Updated 2 weeks ago
ecoma-io
DevOps & Infrastructure Listed

docker

Build small, secure, reproducible container images and compose stacks. Use when writing or reviewing a Dockerfile, debugging a bloated/slow image build, setting up docker-compose for local dev, adding a healthcheck, handling build secrets, or hardening a container (non-root, minimal base). Triggers — "Dockerfile", "docker build", "docker-compose", "containerize", "image is huge", "layer cache", "multi-stage", any `Dockerfile`/`compose.yaml`. Pairs with deployment-cicd (CI builds + registries + k8s — this skill is the image/compose craft), linux-sysadmin (the host), security-web (runtime hardening).

5 Updated today
kouroshez
AI & Automation Listed

dockerfile-pro

Authors small, secure, reproducible multi-stage Dockerfiles with build-cache optimization, pinned base images, non-root runtime users, and minimal attack surface. Use this skill when writing, reviewing, hardening, or shrinking a Dockerfile or container image — e.g. "write a Dockerfile", "containerize this app", "my image is too big", "make this container secure / non-root", "optimize Docker build cache", "multi-stage build", "reduce image layers", "fix Docker best practices", or "review my Dockerfile".

3 Updated 3 weeks ago
JayRHa