analyze-docker-image-size

Installation
SKILL.md

Docker Image Size Analysis

Analyze Docker images for PHP projects to identify bloat sources and provide size reduction strategies.

Expected Size Ranges

Base Image Minimal Typical Bloated
php:8.4-fpm-alpine 30-50 MB 80-120 MB 200+ MB
php:8.4-fpm (Debian) 150-200 MB 250-350 MB 500+ MB
php:8.4-cli-alpine 25-40 MB 60-100 MB 180+ MB

Common Bloat Sources

1. Build Dependencies Not Cleaned

# BLOATED: Dev packages remain in final image
RUN apk add --no-cache $PHPIZE_DEPS icu-dev libzip-dev \
Related skills
Installs
4
GitHub Stars
71
First Seen
Mar 17, 2026