Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Dockerfile optimisation: cache, size and security v1.0.0

Use this resource to write or review a Dockerfile for faster builds, a lighter image and better security

New

  • 582 downloads
  • 146 likes
  • 130 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install dockerfile-optimization

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent writes or reviews your Dockerfiles against 48 rules from the official documentation: layer order, multi-stage builds, base images, secrets and non-root users. It explains the expected gain for each change. You get faster builds and a smaller image.

Mostly picked by

Updated November 2, 2026

Card for the “Dockerfile optimisation: cache, size and security” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • references/: cards on base images, caching and multi-stage builds
  • assets/templates/_template.md: rule template

Good fit for

  • Your image weighs several gigabytes
  • Every build reinstalls all dependencies

Not for

    Tags

    • docker
    • dockerfile
    • container
    • cache
    • security

    About

    You say

    “Optimise this Node Dockerfile: the build reinstalls everything whenever the source changes.”

    Card for the “Dockerfile optimisation: cache, size and security” skill

    Skill published by pproenca under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to write or review a Dockerfile for faster builds, a lighter image and better security
    3. Review and adjust the result

    Content preview

    Files

    • assets/templates/_template.md0.9 KB
    • LICENSE1.1 KB
    • metadata.json1.1 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • references/_sections.md2.1 KB
    • references/base-arg-version.md2.3 KB
    • references/base-distroless.md4.3 KB
    • references/base-minimal-image.md2.6 KB
    • references/base-official-images.md2.4 KB
    • references/base-pin-versions.md2.9 KB
    • references/base-rebuild-regularly.md2.6 KB
    • references/cache-apt-combine.md2.6 KB
    • references/cache-copy-deps-first.md2.1 KB
    • references/cache-copy-link.md3 KB
    • references/cache-external.md2.6 KB
    • references/cache-invalidation.md2.3 KB
    • references/cache-layer-order.md1.9 KB
    • references/cache-minimize-layers.md2.6 KB
    • references/cache-mount-package.md2.8 KB
    • references/ctx-bind-mounts.md2.6 KB
    • references/ctx-dockerignore.md2.6 KB
    • references/ctx-minimize-context.md3 KB
    • references/ctx-syntax-directive.md3.4 KB
    • references/dep-cache-mount-apt.md2.5 KB
    • references/dep-cache-mount-npm.md3 KB
    • references/dep-cache-mount-pip.md1.7 KB
    • references/dep-cleanup-caches.md3.4 KB
    • references/dep-version-pin.md2.6 KB
    • references/inst-copy-over-add.md4 KB
    • references/inst-entrypoint-exec.md4.1 KB
    • references/inst-healthcheck.md4.1 KB
    • references/inst-heredoc-scripts.md3.9 KB
    • references/inst-json-cmd.md3.3 KB
    • references/inst-workdir-absolute.md3.3 KB
    • references/lint-build-checks.md2.9 KB
    • references/lint-labels.md4.2 KB
    • references/lint-pipefail.md3.4 KB
    • references/lint-single-concern.md4.1 KB
    • references/lint-sort-arguments.md3 KB
    • references/sec-attestations.md3.5 KB
    • references/sec-ephemeral-containers.md3.8 KB
    • references/sec-no-secrets-in-args.md4.2 KB
    • references/sec-no-unnecessary-packages.md3.8 KB
    • references/sec-non-root-user.md3.2 KB
    • references/sec-secret-mounts.md3.1 KB
    • references/sec-ssh-mounts.md3.9 KB
    • references/stage-copy-artifacts-only.md1.7 KB
    • references/stage-named-stages.md1.3 KB
    • references/stage-parallel-branches.md2.2 KB
    • references/stage-reusable-base.md2.2 KB
    • references/stage-separate-build-runtime.md1.5 KB
    • references/stage-target-builds.md2.1 KB
    • SKILL.md7.2 KB

    Origin and licence

    Listed unmodified

    Author
    pproenca
    Source
    github.com/pproenca/dot-skills/tree/cf93c57cac89d6fc3e4194686000411567f5caf3/skills/.experimental/dockerfile-optimise
    Licence
    MIT

    Notice

    « dockerfile-optimise » (pproenca, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.