docker-build

Installation
SKILL.md

Docker Build with Tracking

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
Installs
18
GitHub Stars
15
First Seen
Feb 27, 2026
docker-build — lobbi-docs/claude