docker-build

Docker Build with Tracking

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "docker-build" with this command: npx skills add lobbi-docs/claude/lobbi-docs-claude-docker-build

Docker Build with Tracking

Build a Docker image with proper tagging and tracking: $ARGUMENTS

Process

Determine the image tag - Use git SHA or timestamp, NEVER use :latest alone

GIT_SHA=$(git rev-parse --short HEAD) TIMESTAMP=$(date +%Y%m%d-%H%M%S) TAG="${GIT_SHA}-${TIMESTAMP}"

Build with cache busting when needed

  • For production builds: docker build --no-cache --pull -t <registry>/<image>:${TAG} .

  • For dev builds: docker build -t <registry>/<image>:${TAG} .

  • Always also tag as :<branch>-latest for convenience

Verify the build

docker images | grep <image> docker inspect <registry>/<image>:${TAG} | jq '.[0].Created'

Push to registry

docker push <registry>/<image>:${TAG} docker push <registry>/<image>:<branch>-latest

Verify in registry

For ACR:

az acr repository show-tags --name <registry> --repository <image> --orderby time_desc --top 5

For Docker Hub:

docker manifest inspect <registry>/<image>:${TAG}

Anti-Patterns (DO NOT)

  • Never build with just :latest tag

  • Never skip pushing after building

  • Never deploy without verifying the image exists in the registry

  • Never use imagePullPolicy: IfNotPresent with mutable tags

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

vision-multimodal

No summary provided by upstream source.

Repository SourceNeeds Review
General

design-system

No summary provided by upstream source.

Repository SourceNeeds Review
General

kanban

No summary provided by upstream source.

Repository SourceNeeds Review
General

complex-reasoning

No summary provided by upstream source.

Repository SourceNeeds Review