docker-build-cache-debug

Community

Fix stale Docker containers from build cache hits.

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Docker build cache can cause outdated code to run in deployed containers even after source files are modified, leading to hard-to-trace bugs where builds report success but the running application does not reflect recent changes.

Core Features & Use Cases

  • Staleness Detection: Step-by-step commands to compare Docker image creation timestamps with the latest git commit timestamps to confirm if an image is outdated.
  • Frontend Bundle Validation: Methods to grep production SPA bundles for recently added user-visible strings to catch stale frontend builds.
  • Fix & Prevention Workflow: Guided steps for forced no-cache rebuilds, replacing stale container instances, and best practices to avoid cache-related stale code issues in future deployments.
  • Use Case: Ideal for DevOps engineers and full-stack developers debugging why production containers do not show new features or bug fixes after code commits, or frontend teams missing newly added UI elements in deployed SPAs.

Quick Start

Use this skill to diagnose and resolve stale Docker container issues by following the provided debug, rebuild, and validation workflow.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: docker-build-cache-debug
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#docker-build-cache-debug

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.