Docker Build with Tracking

SkillCloud & infra

Build Docker images with proper tagging, cache busting, and build tracking. Prevents stale image issues.

Use Docker Build with Tracking in Claude, ChatGPT or Ahel Desktop

Free. Sign in, add Docker Build with Tracking and connect your AI. About a minute.

Also: Claude Code · Cursor · Codex

Then ask your AI: use the Docker Build with Tracking skill

Details

Instructions available. Your AI can read the instructions. Execution depends on the setup they require.

Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.

Docker Build with TrackingStart free

What this skill tells your AI

The instructions your AI receives, as published by thelobbi/claude in .claude/skills/docker-build/SKILL.md and read by Ahel’s review.

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

Process

  1. 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}"
    
  2. 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
  3. Verify the build

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

    docker push <registry>/<image>:${TAG}
    docker push <registry>/<image>:<branch>-latest
    
  5. 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

Signals

GitHub stars
21
Forks
3
Last commit
Oct 2026

Ahel review

  • S4info
    community integration, published by thelobbi, not docker

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Item type
skill
Key
docker-build
Source
github.com/thelobbi/claude