Lightlines
By docker

docker-build-strategies

docker822 installs

Smaller Docker images with faster, safer builds.

What it does

Guides agents to improve Dockerfiles for faster builds, smaller runtime images, and non-root execution.

When to use it

Use when creating, optimizing, or reviewing Dockerfiles, or improving a project's .dockerignore.

How to use it

It changes how the agent writes and reviews Dockerfiles, applying rules for image size, caching, build context hygiene, and runtime security.

What you provide

  • An existing project

Uses

Latest review

What you need · 2

Requires Docker 23.0+ with BuildKit enabled by default; Docker 20.10–22.x requires setting DOCKER_BUILDKIT=1 before building.

For builds that need npm registry credentials, passes $HOME/.npmrc as a BuildKit secret; public-package builds can omit it.


Access · 2

This skill

$HOME/.npmrc

Read

Reads npm registry credentials

SSH agent

Read

Checks your SSH agent keys