docker-optimisations

Official

Maximise Docker cache, speed up builds.

Authorrazorpay
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Optimises Dockerfiles in a repository to improve build cache efficiency by reordering layers so static, rarely-changing instructions are at the top and build-specific ARGs/ENVs come after the cache boundary.

Core Features & Use Cases

  • Reorders static and cache-busting layers to maximize Docker cache hits and reduce rebuild times.
  • Consolidates duplicate package installations and enforces a robust builder/distributor stage ordering.
  • Applies proven caching patterns across multiple Dockerfiles while preserving exact functionality.

Quick Start

Run the optimiser on a repository with /docker-optimisations optimise <service-name> [--branch <branch-name>].

Dependency Matrix

Required Modules

None required

Components

references

💻 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-optimisations
Download link: https://github.com/razorpay/trino-gateway/archive/main.zip#docker-optimisations

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 471,000+ vetted skills library on demand.